org.eclipse.net4j.util.om
Interface OMPlatform
- public interface OMPlatform
Represents the platform that bundles
are deployed into, whether OSGi is
running
or not.
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
INSTANCE
static final OMPlatform INSTANCE
bundle
OMBundle bundle(String bundleID,
Class<?> accessor)
isOSGiRunning
boolean isOSGiRunning()
isExtensionRegistryAvailable
boolean isExtensionRegistryAvailable()
- Since:
- 2.0
isDebugging
boolean isDebugging()
setDebugging
void setDebugging(boolean debugging)
addLogFilter
void addLogFilter(OMLogFilter logFilter)
- Since:
- 3.2
removeLogFilter
void removeLogFilter(OMLogFilter logFilter)
- Since:
- 3.2
addLogHandler
void addLogHandler(OMLogHandler logHandler)
removeLogHandler
void removeLogHandler(OMLogHandler logHandler)
addTraceHandler
void addTraceHandler(OMTraceHandler traceHandler)
removeTraceHandler
void removeTraceHandler(OMTraceHandler traceHandler)
getStateFolder
File getStateFolder()
getConfigFolder
File getConfigFolder()
getConfigFile
File getConfigFile(String name)
getConfigProperties
Properties getConfigProperties(String name)
getProperty
String getProperty(String key)
- Since:
- 3.0
getProperty
String getProperty(String key,
String defaultValue)
- Since:
- 3.0
getCommandLineArgs
String[] getCommandLineArgs()
throws IllegalStateException
- Throws:
IllegalStateException
- Since:
- 3.2
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.