org.jboss.osgi.spi.management
Interface ManagedFrameworkMBean

All Known Implementing Classes:
ManagedFramework

public interface ManagedFrameworkMBean

The managed view of an OSGi Framework

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

Field Summary
static javax.management.ObjectName MBEAN_MANAGED_FRAMEWORK
          The default object name: jboss.osgi:service=ManagedFramework
 
Method Summary
 javax.management.ObjectName getBundle(java.lang.String symbolicName)
          Get the installed bundle
 java.util.Set<javax.management.ObjectName> getBundles()
          Get the list of all installed bundles
 ManagedServiceReference getServiceReference(java.lang.String clazz)
          Returns a ServiceReference object for a service that implements and was registered under the specified class.
 ManagedServiceReference[] getServiceReferences(java.lang.String clazz, java.lang.String filter)
          Returns an array of ManagedServiceReference objects.
 void refreshPackages(java.lang.String[] symbolicNames)
          Refresh packages through the PackageAdmin service
 

Field Detail

MBEAN_MANAGED_FRAMEWORK

static final javax.management.ObjectName MBEAN_MANAGED_FRAMEWORK
The default object name: jboss.osgi:service=ManagedFramework

Method Detail

getBundles

java.util.Set<javax.management.ObjectName> getBundles()
Get the list of all installed bundles


getBundle

javax.management.ObjectName getBundle(java.lang.String symbolicName)
Get the installed bundle


getServiceReference

ManagedServiceReference getServiceReference(java.lang.String clazz)
Returns a ServiceReference object for a service that implements and was registered under the specified class.


getServiceReferences

ManagedServiceReference[] getServiceReferences(java.lang.String clazz,
                                               java.lang.String filter)
                                               throws org.osgi.framework.InvalidSyntaxException
Returns an array of ManagedServiceReference objects. The returned array of ManagedServiceReference objects contains services that were registered under the specified class, match the specified filter criteria, and the packages for the class names under which the services were registered.

Throws:
org.osgi.framework.InvalidSyntaxException

refreshPackages

void refreshPackages(java.lang.String[] symbolicNames)
Refresh packages through the PackageAdmin service



Copyright © 2009. All Rights Reserved.