org.jboss.osgi.spi.framework
Interface RemoteBundle

All Known Subinterfaces:
ManagedBundleMBean
All Known Implementing Classes:
ManagedBundle

public interface RemoteBundle

The supported functionality of a remote OSGi Bundle.

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

Method Summary
 long getBundleId()
          Returns this bundle's unique identifier.
 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

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


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 JBoss, a division of Red Hat, Inc.. All Rights Reserved.