org.apache.felix.jmood.core
Class Framework
java.lang.Object
org.apache.felix.jmood.core.Framework
- All Implemented Interfaces:
- javax.management.MBeanRegistration, FrameworkMBean
public class Framework
- extends Object
- implements FrameworkMBean, javax.management.MBeanRegistration
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Framework
public Framework(AgentContext ac)
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:
FRAMEWORK_VERSION
FRAMEWORK_VENDOR
FRAMEWORK_LANGUAGE
FRAMEWORK_OS_NAME
FRAMEWORK_OS_VERSION
FRAMEWORK_PROCESSOR
Plus, if available:
FRAMEWORK_BOOTDELEGATION
FRAMEWORK_EXECUTIONENVIRONMENT
FRAMEWORK_SYSTEMPACKAGES
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 © 2013 The Apache Software Foundation. All Rights Reserved.