Framework instances are created using a FrameworkFactory. The methods
of this interface can be used to manage and control the created framework
instance.
| Modifier and Type | Method and Description |
|---|---|
| public < The type to which this Framework is to be adapted. A> A | Returns: The object, of the specified type, to which this Framework has been adapted ornull if this Framework cannot be adaptedClass object for the type to which this Framework is to be
adapted. type)Redeclares org. Adapt this Framework to the specified type. |
| public Enumeration | Returns: null as a framework implementation does not have a proper
bundle from which to return entries.Ignored. path, String Ignored. filePattern, boolean Ignored. recurse)Redeclares org. Returns |
| public long | Returns: 0.Redeclares org. Returns the Framework unique identifier. |
| public URL | Returns: null as a framework implementation does not have a proper
bundle from which to return an entry.Ignored. path)Redeclares org. Returns |
| public Enumeration | Returns: null as a framework implementation does not have a proper
bundle from which to return entry paths.Ignored. path)Redeclares org. Returns |
| public long | Returns: The time when the set of bundles in this framework was last modified.Redeclares org. Returns the time when the set of bundles in this framework was last modified. |
| public String | Returns: The string "System Bundle".Redeclares org. Returns the Framework location identifier. |
| public String | Returns: The symbolic name of this Framework.Redeclares org. Returns the symbolic name of this Framework. |
| public void | |
| public void | init(FrameworkListener...
Zero or more listeners to be notified when framework
events occur while initializing the framework. The specified
listeners do not need to be otherwise registered with the
framework. If a specified listener is registered with the
framework, it will be notified twice for each framework event. listeners)Initialize this Framework. |
| public void | |
| public void | start(int
Ignored. There are no start options for the Framework. options)Redeclares org. Start this Framework. |
| public void | |
| public void | stop(int
Ignored. There are no stop options for the Framework. options)Redeclares org. Stop this Framework. |
| public void | |
| public void | |
| public void | update(InputStream
Any provided InputStream is immediately closed before returning
from this method and otherwise ignored. in)Redeclares org. Stop and restart this Framework. |
| public FrameworkEvent | Returns: A Framework Event indicating the reason this method returned. The followingFrameworkEvent types may be returned by this
method.
Maximum number of milliseconds to wait until this
Framework has completely stopped. A value of zero will wait
indefinitely. timeout)Wait until this Framework has completely stopped. |
| adapt | back to summary |
|---|---|
| public <A> A adapt(Class<A> type) Redeclares org. Adapt this Framework to the specified type.
Adapting this Framework to the specified type may require certain checks,
including security checks, to succeed. If a check does not succeed, then
this Framework cannot be adapted and | |
| findEntries | back to summary |
|---|---|
| public Enumeration Redeclares org. Returns
| |
| getBundleId | back to summary |
|---|---|
| public long getBundleId() Redeclares org. Returns the Framework unique identifier. This Framework is assigned the unique identifier zero (0) since this Framework is also a System Bundle.
| |
| getEntry | back to summary |
|---|---|
| public URL getEntry(String path) Redeclares org. Returns | |
| getEntryPaths | back to summary |
|---|---|
| public Enumeration Redeclares org. Returns
| |
| getLastModified | back to summary |
|---|---|
| public long getLastModified() Redeclares org. Returns the time when the set of bundles in this framework was last modified. The set of bundles is considered to be modified when a bundle is installed, updated or uninstalled. The time value is the number of milliseconds since January 1, 1970, 00:00:00 UTC.
| |
| getLocation | back to summary |
|---|---|
| public String getLocation() Redeclares org. Returns the Framework location identifier. This Framework is assigned the
unique location "
| |
| getSymbolicName | back to summary |
|---|---|
| public String getSymbolicName() Redeclares org. Returns the symbolic name of this Framework. The symbolic name is unique
for the implementation of the framework. However, the symbolic name
"
| |
| init | back to summary |
|---|---|
| public void init() throws BundleException Initialize this Framework.
This method performs the same function as calling
| |
| init | back to summary |
|---|---|
| public void init(FrameworkListener... listeners) throws BundleException Initialize this Framework. After calling this method, this Framework must:
This Framework will not actually be started until
This method does nothing if called when this Framework is in the
All framework events fired by this method are also delivered to the specified FrameworkListeners in the order they are specified before returning from this method. After returning from this method the specified listeners are no longer notified of framework events.
| |
| start | back to summary |
|---|---|
| public void start() throws BundleException Redeclares org. Start this Framework. The following steps are taken to start this Framework:
| |
| start | back to summary |
|---|---|
| public void start(int options) throws BundleException Redeclares org. Start this Framework.
Calling this method is the same as calling
| |
| stop | back to summary |
|---|---|
| public void stop() throws BundleException Redeclares org. Stop this Framework. The method returns immediately to the caller after initiating the following steps to be taken on another thread.
After being stopped, this Framework may be discarded, initialized or started.
| |
| stop | back to summary |
|---|---|
| public void stop(int options) throws BundleException Redeclares org. Stop this Framework.
Calling this method is the same as calling
| |
| uninstall | back to summary |
|---|---|
| public void uninstall() throws BundleException Redeclares org. The Framework cannot be uninstalled. This method always throws a BundleException.
| |
| update | back to summary |
|---|---|
| public void update() throws BundleException Redeclares org. Stop and restart this Framework. The method returns immediately to the caller after initiating the following steps to be taken on another thread.
| |
| update | back to summary |
|---|---|
| public void update(InputStream in) throws BundleException Redeclares org. Stop and restart this Framework.
Calling this method is the same as calling
| |
| waitForStop | back to summary |
|---|---|
| public FrameworkEvent waitForStop(long timeout) throws InterruptedException Wait until this Framework has completely stopped. The A Framework Event is returned to indicate why this Framework has stopped.
| |