public interface OMPlatform
bundles
are deployed into, whether OSGi is
running
or not.Modifier 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() |
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)
String[] getCommandLineArgs() throws IllegalStateException
IllegalStateException
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.