public interface OMPlatform
bundles
are deployed into, whether OSGi is
running
or not.OMBundle
bundles platform, File
oneway - - stateFolderOMLogHandler
- - logHandlers, OMTraceHandler
- - traceHandlersModifier and Type | Field and Description |
---|---|
static OMPlatform |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
addLogFilter(OMLogFilter logFilter) |
void |
addLogHandler(OMLogHandler logHandler) |
void |
addTraceHandler(OMTraceHandler traceHandler) |
OMBundle |
bundle(String bundleID,
Class<?> accessor) |
String[] |
getCommandLineArgs() |
File |
getConfigFile(String name) |
File |
getConfigFolder() |
Properties |
getConfigProperties(String name) |
String |
getProperty(String key) |
String |
getProperty(String key,
String defaultValue) |
File |
getStateFolder() |
boolean |
isDebugging() |
boolean |
isExtensionRegistryAvailable() |
boolean |
isOSGiRunning() |
boolean |
isProperty(String key) |
boolean |
isProperty(String key,
boolean defaultValue) |
void |
removeLogFilter(OMLogFilter logFilter) |
void |
removeLogHandler(OMLogHandler logHandler) |
void |
removeTraceHandler(OMTraceHandler traceHandler) |
void |
setDebugging(boolean debugging) |
static final OMPlatform INSTANCE
boolean isOSGiRunning()
boolean isExtensionRegistryAvailable()
boolean isDebugging()
void setDebugging(boolean debugging)
void addLogFilter(OMLogFilter logFilter)
void removeLogFilter(OMLogFilter logFilter)
void addLogHandler(OMLogHandler logHandler)
void removeLogHandler(OMLogHandler logHandler)
void addTraceHandler(OMTraceHandler traceHandler)
void removeTraceHandler(OMTraceHandler traceHandler)
File getStateFolder()
File getConfigFolder()
Properties getConfigProperties(String name)
boolean isProperty(String key)
boolean isProperty(String key, boolean defaultValue)
String[] getCommandLineArgs() throws IllegalStateException
IllegalStateException
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html