Package org.eclipse.net4j.util.om
Interface OMBundle
- All Superinterfaces:
ExtendedIOUtil.ClassResolver
Represents a
bundle, 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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA facility for accessing OSGidebug options, whether OSGiis runningor not.static interfaceA facility for accessingresource bundles. -
Method Summary
Modifier and TypeMethodDescriptionvoidgetInputStream(String path) Class<?> logger()voidprepareContainer(IManagedContainer container) Registers this bundle's declarative managed-container contributions in the supplied container.voidsetBundleContext(Object bundleContext) Deprecated.For internal use only.Methods inherited from interface org.eclipse.net4j.util.io.ExtendedIOUtil.ClassResolver
resolveClass
-
Method Details
-
getPlatform
OMPlatform getPlatform() -
getBundleID
String getBundleID() -
getBaseURL
URL getBaseURL() -
getClasses
- Since:
- 3.2
-
tracer
-
logger
OMLogger logger() -
preferences
OMPreferences preferences() -
getStatus
- Since:
- 3.5
-
coreException
- Throws:
CoreException- Since:
- 3.5
-
getConfigFile
File getConfigFile() -
getConfigProperties
Properties getConfigProperties() -
getUserLocation
String getUserLocation()- Since:
- 3.18
-
getStateLocation
String getStateLocation() -
getInputStream
- Throws:
IOException
-
getDebugSupport
OMBundle.DebugSupport getDebugSupport() -
getTranslationSupport
OMBundle.TranslationSupport getTranslationSupport() -
loadClass
- Throws:
ClassNotFoundException- Since:
- 3.22
-
prepareContainer
Registers this bundle's declarative managed-container contributions in the supplied container. This is the low-level preparation primitive used primarily byIManagedContainerInitializerimplementations. It may also be used when intentionally configuring a raw container, for example one created byContainerUtil.createContainer(). Applications usingContainerUtil.createInitializedContainer()orOMPlatform.createManagedContainer()generally do not need to prepare individual bundles themselves. Preparation is idempotent for a given bundle/container pair. This method does not activate the container.- Parameters:
container- the container to receive this bundle's declarative contributions.- Since:
- 3.23
- See Also:
-
setBundleContext
Deprecated.For internal use only.
-