ModuleConnector provides connections to instances of
ConnectModule that are used by a Framework instance to
connect installed bundles locations with content provided by the
ModuleConnector.
This allows a ModuleConnector to provide content and classes for a
connected bundle installed in the Framework. A
ModuleConnector is provided when
creating a
framework instance. Because a ModuleConnector instance can
participate in the initialization of the Framework and the life cycle
of a Framework instance the ModuleConnector instance should
only be used with a single Framework instance at a time.
| Modifier and Type | Method and Description |
|---|---|
| public Optional | Returns: AnOptional containing the ConnectModule for the
specified bundle location, or an empty Optional if the
framework must handle reading the content of the bundle itself.The bundle location used to install a bundle. location)Connects a bundle location with a |
| public void | initialize(File
The persistent storage area used by the storage, Map<String, String> Framework
or null if the platform does not have file system
support.An unmodifiable map of framework configuration
properties that were used to configure the new framework
instance. configuration)Initializes this |
| public Optional | Returns: AnOptional containing a new BundleActivator for
this ModuleConnector, or an empty Optional if no
BundleActivator is necessary.Creates a new activator for this |
| connect | back to summary |
|---|---|
| public Optional Connects a bundle location with a
When the result is empty, then the framework must handle reading the
content of the bundle itself. Otherwise, the returned
| |
| initialize | back to summary |
|---|---|
| public void initialize(File storage, Map<String, String> configuration) Initializes this
This method is called once by a | |
| newBundleActivator | back to summary |
|---|---|
| public Optional Creates a new activator for this
This method is called by the framework during framework
| |