org.jboss.osgi.spi.management
Interface ManagedBundleMBean

All Known Implementing Classes:
ManagedBundle

public interface ManagedBundleMBean

The managed view of an OSGi Bundle. Bundles are registered under the name jboss.osgi:bundle=[SymbolicName],id=[BundleId]

Since:
04-Mar-2009
Author:
thomas.diesler@jboss.com

Method Summary
 long getBundleId()
          Returns this bundle's unique identifier.
 java.util.Dictionary<java.lang.String,java.lang.String> getHeaders()
          Returns the bundle manifest headers
 javax.management.ObjectName getObjectName()
          Get the bundles object name.
 java.lang.String getProperty(java.lang.String key)
          Returns the value of the specified property from the BundleContext.
 int getState()
          Returns this bundle's current state.
 java.lang.String getSymbolicName()
          Returns the symbolic name of this bundle as specified by its Bundle-SymbolicName manifest header
 void start()
          Starts this bundle with no options
 void stop()
          Stops this bundle with no options.
 

Method Detail

getObjectName

javax.management.ObjectName getObjectName()
Get the bundles object name.


getState

int getState()
Returns this bundle's current state. A bundle can be in only one state at any time.

Returns:
An element of UNINSTALLED,INSTALLED, RESOLVED,STARTING, STOPPING,ACTIVE.

getBundleId

long getBundleId()
Returns this bundle's unique identifier.


getSymbolicName

java.lang.String getSymbolicName()
Returns the symbolic name of this bundle as specified by its Bundle-SymbolicName manifest header


getHeaders

java.util.Dictionary<java.lang.String,java.lang.String> getHeaders()
Returns the bundle manifest headers


getProperty

java.lang.String getProperty(java.lang.String key)
Returns the value of the specified property from the BundleContext.


start

void start()
           throws org.osgi.framework.BundleException
Starts this bundle with no options

Throws:
org.osgi.framework.BundleException

stop

void stop()
          throws org.osgi.framework.BundleException
Stops this bundle with no options.

Throws:
org.osgi.framework.BundleException


Copyright © 2009. All Rights Reserved.