org.apache.karaf.features.management.internal
Class FeaturesServiceMBeanImpl

java.lang.Object
  extended by javax.management.StandardMBean
      extended by org.apache.karaf.features.management.internal.StandardEmitterMBean
          extended by 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.


Field Summary
 
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
 
Constructor Summary
FeaturesServiceMBeanImpl()
           
 
Method Summary
 void addRepository(java.lang.String uri)
           
 javax.management.openmbean.TabularData getFeatures()
          
 FeaturesListener getFeaturesListener()
           
 javax.management.MBeanNotificationInfo[] getNotificationInfo()
           
 javax.management.openmbean.TabularData getRepositories()
          
 void installFeature(java.lang.String name)
           
 void installFeature(java.lang.String name, java.lang.String version)
           
 void postDeregister()
           
 void postRegister(java.lang.Boolean registrationDone)
           
 void preDeregister()
           
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 void removeRepository(java.lang.String uri)
           
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 void setFeaturesService(FeaturesService featuresService)
           
 void uninstallFeature(java.lang.String name)
           
 void uninstallFeature(java.lang.String name, java.lang.String version)
           
 
Methods inherited from class org.apache.karaf.features.management.internal.StandardEmitterMBean
addNotificationListener, getMBeanInfo, removeNotificationListener, removeNotificationListener, sendNotification
 
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
 

Constructor Detail

FeaturesServiceMBeanImpl

public FeaturesServiceMBeanImpl()
                         throws javax.management.NotCompliantMBeanException
Throws:
javax.management.NotCompliantMBeanException
Method Detail

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.