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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLogFilter
(OMLogFilter logFilter) void
addLogHandler
(OMLogHandler logHandler) void
addTraceHandler
(OMTraceHandler traceHandler) String[]
getConfigFile
(String name) getConfigProperties
(String name) getProperty
(String key) int
getProperty
(String key, int defaultValue) long
getProperty
(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) boolean
boolean
boolean
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)
-
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
-