org.apache.felix.jmood.core
Class Framework

java.lang.Object
  extended by org.apache.felix.jmood.core.Framework
All Implemented Interfaces:
javax.management.MBeanRegistration, FrameworkMBean

public class Framework
extends Object
implements FrameworkMBean, javax.management.MBeanRegistration


Constructor Summary
Framework(AgentContext ac)
           
 
Method Summary
 BundleInfo[] getBundles()
           
 PackageInfo[] getPackageInfo()
           
 Hashtable getProperties()
          This hashtable contains the framework properties: FRAMEWORK_VERSION FRAMEWORK_VENDOR FRAMEWORK_LANGUAGE FRAMEWORK_OS_NAME FRAMEWORK_OS_VERSION FRAMEWORK_PROCESSOR
 String getProperty(String key)
           
 ServiceInfo[] getServiceInfo()
           
 void postDeregister()
           
 void postRegister(Boolean registrationDone)
           
 void preDeregister()
           
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Framework

public Framework(AgentContext ac)
Method Detail

getBundles

public BundleInfo[] getBundles()
Specified by:
getBundles in interface FrameworkMBean

getServiceInfo

public ServiceInfo[] getServiceInfo()
                             throws InvalidSyntaxException
Specified by:
getServiceInfo in interface FrameworkMBean
Throws:
InvalidSyntaxException

getPackageInfo

public PackageInfo[] getPackageInfo()
                             throws ServiceNotAvailableException
Specified by:
getPackageInfo in interface FrameworkMBean
Throws:
ServiceNotAvailableException

getProperties

public Hashtable getProperties()
Description copied from interface: FrameworkMBean
This hashtable contains the framework properties:

Plus, if available:

For any other properties, we suggest to use the getProperty(String key)

Specified by:
getProperties in interface FrameworkMBean
Returns:
See Also:
Constants

getProperty

public String getProperty(String key)
Specified by:
getProperty in interface FrameworkMBean
Returns:
return the property value or null if undefined. System properties are also searched for if the property is not found in the framework properties

preRegister

public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
                                        throws Exception
Specified by:
preRegister in interface javax.management.MBeanRegistration
Throws:
Exception

postRegister

public void postRegister(Boolean registrationDone)
Specified by:
postRegister in interface javax.management.MBeanRegistration

preDeregister

public void preDeregister()
                   throws Exception
Specified by:
preDeregister in interface javax.management.MBeanRegistration
Throws:
Exception

postDeregister

public void postDeregister()
Specified by:
postDeregister in interface javax.management.MBeanRegistration


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.