Package org.eclipse.net4j.util.om
Interface OMPlatform
public interface OMPlatform
Represents the platform that
bundles are deployed into, whether OSGi is
running or not.- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLogFilter(OMLogFilter logFilter) voidaddLogHandler(OMLogHandler logHandler) voidaddTraceHandler(OMTraceHandler traceHandler) default IManagedContainerCreates a new independent managed container appropriate for the current runtime platform, initializes it with available platform and declarative contributions, activates it, and returns it ready for use.createManagedContainer(String name) Creates a new independent managed container appropriate for the current runtime platform, initializes it with the platform and declarative contributions available to it, activates it, and returns it ready for use.String[]getConfigFile(String name) getConfigProperties(String name) getProperty(String key) intgetProperty(String key, int defaultValue) longgetProperty(String key, long defaultValue) <T extends Enum<T>>
TgetProperty(String key, Class<T> enumType) getProperty(String key, String defaultValue) <T extends Enum<T>>
TgetProperty(String key, T defaultValue) booleanbooleanbooleanbooleanisProperty(String key) booleanisProperty(String key, boolean defaultValue) voidremoveLogFilter(OMLogFilter logFilter) voidremoveLogHandler(OMLogHandler logHandler) voidremoveTraceHandler(OMTraceHandler traceHandler) voidsetDebugging(boolean debugging)
-
Field Details
-
INSTANCE
-
-
Method Details
-
bundle
-
isOSGiRunning
boolean isOSGiRunning() -
isExtensionRegistryAvailable
boolean isExtensionRegistryAvailable()- Since:
- 2.0
-
isDebugging
boolean isDebugging() -
setDebugging
void setDebugging(boolean debugging) -
addLogFilter
- Since:
- 3.2
-
removeLogFilter
- Since:
- 3.2
-
addLogHandler
-
removeLogHandler
-
addTraceHandler
-
removeTraceHandler
-
getUserFolder
File getUserFolder()- Since:
- 3.18
-
getStateFolder
File getStateFolder() -
getConfigFolder
File getConfigFolder() -
getConfigFile
-
getConfigProperties
-
getProperty
- Since:
- 3.0
-
getProperty
- Since:
- 3.0
-
getProperty
- Since:
- 3.8
-
getProperty
- Since:
- 3.8
-
getProperty
- Since:
- 3.8
-
getProperty
- Since:
- 3.8
-
isProperty
- Since:
- 3.7
-
isProperty
- Since:
- 3.7
-
getCommandLineArgs
- Throws:
IllegalStateException- Since:
- 3.2
-
createManagedContainer
Creates a new independent managed container appropriate for the current runtime platform, initializes it with the platform and declarative contributions available to it, activates it, and returns it ready for use. In OSGi this is aPluginContainer; outside OSGi it is aStandaloneContainer, which discoversIManagedContainerInitializerproviders throughServiceLoaderduring activation. Each invocation creates a new container; it is distinct from the canonical globalIManagedContainer.INSTANCE. See alsoContainerUtil.createInitializedContainer()and the rawContainerUtil.createContainer().- Parameters:
name- the name to assign to the container, ornullto use the platform default name.- Returns:
- a newly created active container, independent of
IManagedContainer.INSTANCE. - Since:
- 3.31
-
createManagedContainer
Creates a new independent managed container appropriate for the current runtime platform, initializes it with available platform and declarative contributions, activates it, and returns it ready for use. In OSGi this is aPluginContainer; outside OSGi it is aStandaloneContainerwhose activation discoversIManagedContainerInitializerproviders throughServiceLoader. Each invocation returns a new container distinct from the canonical globalIManagedContainer.INSTANCE. See alsoContainerUtil.createInitializedContainer()and the rawContainerUtil.createContainer().- Returns:
- a newly created active container, independent of
IManagedContainer.INSTANCE. - Since:
- 3.31
-