org.apache.karaf.features.management.internal
Class FeaturesServiceMBeanImpl
java.lang.Object
javax.management.StandardMBean
org.apache.karaf.features.management.internal.StandardEmitterMBean
org.apache.karaf.features.management.internal.FeaturesServiceMBeanImpl
- All Implemented Interfaces:
- javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, FeaturesServiceMBean
public class FeaturesServiceMBeanImpl
- extends StandardEmitterMBean
- implements javax.management.MBeanRegistration, FeaturesServiceMBean
Implementation of FeaturesServiceMBean
.
Fields inherited from interface org.apache.karaf.features.management.FeaturesServiceMBean |
FEATURE, FEATURE_BUNDLES, FEATURE_CONFIG, FEATURE_CONFIG_ELEMENT, FEATURE_CONFIG_ELEMENT_KEY, FEATURE_CONFIG_ELEMENT_VALUE, FEATURE_CONFIG_ELEMENTS, FEATURE_CONFIG_FILES, FEATURE_CONFIG_FILES_ELEMENTS, FEATURE_CONFIG_PID, FEATURE_CONFIGURATIONFILES, FEATURE_CONFIGURATIONS, FEATURE_DEPENDENCIES, FEATURE_EVENT, FEATURE_EVENT_EVENT_TYPE, FEATURE_EVENT_EVENT_TYPE_INSTALLED, FEATURE_EVENT_EVENT_TYPE_UNINSTALLED, FEATURE_EVENT_TYPE, FEATURE_IDENTIFIER, FEATURE_INSTALLED, FEATURE_NAME, FEATURE_VERSION, REPOSITORY, REPOSITORY_EVENT, REPOSITORY_EVENT_EVENT_TYPE, REPOSITORY_EVENT_EVENT_TYPE_ADDED, REPOSITORY_EVENT_EVENT_TYPE_REMOVED, REPOSITORY_EVENT_TYPE, REPOSITORY_FEATURES, REPOSITORY_NAME, REPOSITORY_REPOSITORIES, REPOSITORY_URI |
Methods inherited from class javax.management.StandardMBean |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, setAttribute, setAttributes, setImplementation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeaturesServiceMBeanImpl
public FeaturesServiceMBeanImpl()
throws javax.management.NotCompliantMBeanException
- Throws:
javax.management.NotCompliantMBeanException
preRegister
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws Exception
- Specified by:
preRegister
in interface javax.management.MBeanRegistration
- Overrides:
preRegister
in class javax.management.StandardMBean
- Throws:
Exception
postRegister
public void postRegister(java.lang.Boolean registrationDone)
- Specified by:
postRegister
in interface javax.management.MBeanRegistration
- Overrides:
postRegister
in class javax.management.StandardMBean
preDeregister
public void preDeregister()
throws Exception
- Specified by:
preDeregister
in interface javax.management.MBeanRegistration
- Overrides:
preDeregister
in class javax.management.StandardMBean
- Throws:
Exception
postDeregister
public void postDeregister()
- Specified by:
postDeregister
in interface javax.management.MBeanRegistration
- Overrides:
postDeregister
in class javax.management.StandardMBean
getFeatures
public javax.management.openmbean.TabularData getFeatures()
throws Exception
-
- Specified by:
getFeatures
in interface FeaturesServiceMBean
- Throws:
Exception
getRepositories
public javax.management.openmbean.TabularData getRepositories()
throws Exception
-
- Specified by:
getRepositories
in interface FeaturesServiceMBean
- Throws:
Exception
addRepository
public void addRepository(java.lang.String uri)
throws Exception
- Specified by:
addRepository
in interface FeaturesServiceMBean
- Throws:
Exception
removeRepository
public void removeRepository(java.lang.String uri)
throws Exception
- Specified by:
removeRepository
in interface FeaturesServiceMBean
- Throws:
Exception
installFeature
public void installFeature(java.lang.String name)
throws Exception
- Specified by:
installFeature
in interface FeaturesServiceMBean
- Throws:
Exception
installFeature
public void installFeature(java.lang.String name,
java.lang.String version)
throws Exception
- Specified by:
installFeature
in interface FeaturesServiceMBean
- Throws:
Exception
uninstallFeature
public void uninstallFeature(java.lang.String name)
throws Exception
- Specified by:
uninstallFeature
in interface FeaturesServiceMBean
- Throws:
Exception
uninstallFeature
public void uninstallFeature(java.lang.String name,
java.lang.String version)
throws Exception
- Specified by:
uninstallFeature
in interface FeaturesServiceMBean
- Throws:
Exception
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
setFeaturesService
public void setFeaturesService(FeaturesService featuresService)
getFeaturesListener
public FeaturesListener getFeaturesListener()
getNotificationInfo
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfo
in interface javax.management.NotificationBroadcaster
- Overrides:
getNotificationInfo
in class StandardEmitterMBean
Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.