|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.spi.management.ManagedBundle
public class ManagedBundle
The managed view of an OSGi Bundle
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_ID
|
static java.lang.String |
PROPERTY_SYMBOLIC_NAME
|
static java.lang.String |
PROPERTY_VERSION
|
| Constructor Summary | |
|---|---|
ManagedBundle(org.osgi.framework.BundleContext context,
org.osgi.framework.Bundle bundle)
|
|
| Method Summary | |
|---|---|
long |
getBundleId()
Returns this bundle's unique identifier. |
java.io.File |
getDataFile(java.lang.String filename)
Creates a File object for a file in the persistent storage area provided for the bundle by the Framework. |
java.lang.String |
getEntry(java.lang.String path)
Returns a string encoded URL to the entry at the specified path in this bundle. |
java.util.Dictionary<java.lang.String,java.lang.String> |
getHeaders()
Returns the bundle manifest headers |
java.util.Dictionary<java.lang.String,java.lang.String> |
getHeaders(java.lang.String locale)
Returns this bundle's Manifest headers and values localized to the specified locale. |
java.lang.String |
getLocation()
Returns the location of this bundle |
javax.management.ObjectName |
getObjectName()
Get the bundles object name. |
static javax.management.ObjectName |
getObjectName(org.osgi.framework.Bundle bundle)
|
static javax.management.ObjectName |
getObjectName(long id,
java.lang.String name,
org.osgi.framework.Version version)
|
java.lang.String |
getProperty(java.lang.String key)
Returns the value of the specified property from the BundleContext. |
java.lang.String |
getResource(java.lang.String name)
Find the specified resource from this bundle's class loader. |
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 |
javax.management.ObjectName |
loadClass(java.lang.String name)
Loads the specified class using this bundle's class loader. |
void |
start()
Starts this bundle with no options |
void |
stop()
Stops this bundle with no options. |
void |
update()
Update this bundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_ID
public static final java.lang.String PROPERTY_SYMBOLIC_NAME
public static final java.lang.String PROPERTY_VERSION
| Constructor Detail |
|---|
public ManagedBundle(org.osgi.framework.BundleContext context,
org.osgi.framework.Bundle bundle)
| Method Detail |
|---|
public static javax.management.ObjectName getObjectName(org.osgi.framework.Bundle bundle)
public static javax.management.ObjectName getObjectName(long id,
java.lang.String name,
org.osgi.framework.Version version)
public javax.management.ObjectName getObjectName()
ManagedBundleMBean
getObjectName in interface ManagedBundleMBeanpublic java.lang.String getProperty(java.lang.String key)
ManagedBundleMBean
getProperty in interface ManagedBundleMBeanpublic int getState()
ManagedBundleMBean
getState in interface ManagedBundleMBeanpublic long getBundleId()
ManagedBundleMBean
getBundleId in interface ManagedBundleMBeanpublic java.lang.String getSymbolicName()
ManagedBundleMBean
getSymbolicName in interface ManagedBundleMBeanpublic java.lang.String getLocation()
ManagedBundleMBean
getLocation in interface ManagedBundleMBeanpublic java.util.Dictionary<java.lang.String,java.lang.String> getHeaders()
ManagedBundleMBean
getHeaders in interface ManagedBundleMBeanpublic java.util.Dictionary<java.lang.String,java.lang.String> getHeaders(java.lang.String locale)
ManagedBundleMBean
getHeaders in interface ManagedBundleMBeanpublic java.lang.String getEntry(java.lang.String path)
ManagedBundleMBean
getEntry in interface ManagedBundleMBeanpublic java.lang.String getResource(java.lang.String name)
ManagedBundleMBean
getResource in interface ManagedBundleMBeanname - The name of the resource.
public javax.management.ObjectName loadClass(java.lang.String name)
throws java.lang.ClassNotFoundException
ManagedBundleMBean
loadClass in interface ManagedBundleMBeanname - The name of the class to load
java.lang.ClassNotFoundException - If no such class can be found or if this bundle is a fragment bundlepublic java.io.File getDataFile(java.lang.String filename)
ManagedBundleMBean
getDataFile in interface ManagedBundleMBean
public void start()
throws org.osgi.framework.BundleException
ManagedBundleMBean
start in interface ManagedBundleMBeanorg.osgi.framework.BundleException
public void stop()
throws org.osgi.framework.BundleException
ManagedBundleMBean
stop in interface ManagedBundleMBeanorg.osgi.framework.BundleException
public void update()
throws org.osgi.framework.BundleException
ManagedBundleMBean
update in interface ManagedBundleMBeanorg.osgi.framework.BundleException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||