org.wso2.carbon.governance.api.internal
Class GovernanceAPIServiceComponent

java.lang.Object
  extended by org.wso2.carbon.governance.api.internal.GovernanceAPIServiceComponent

public class GovernanceAPIServiceComponent
extends Object

The Governance API Declarative Service Component.


Constructor Summary
GovernanceAPIServiceComponent()
           
 
Method Summary
protected  void activate(org.osgi.service.component.ComponentContext context)
          Activates the Governance API bundle.
protected  void deactivate(org.osgi.service.component.ComponentContext context)
          Deactivates the Governance API bundle.
protected  void setRegistryService(RegistryService registryService)
          Method to set the registry service used.
protected  void unsetRegistryService(RegistryService registryService)
          This method is called when the current registry service becomes un-available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GovernanceAPIServiceComponent

public GovernanceAPIServiceComponent()
Method Detail

activate

protected void activate(org.osgi.service.component.ComponentContext context)
Activates the Governance API bundle.

Parameters:
context - the OSGi component context.

deactivate

protected void deactivate(org.osgi.service.component.ComponentContext context)
Deactivates the Governance API bundle.

Parameters:
context - the OSGi component context.

setRegistryService

protected void setRegistryService(RegistryService registryService)
Method to set the registry service used. This will be used to access the registry instance. This method is called when the OSGi Registry Service is available.

Parameters:
registryService - the registry service.

unsetRegistryService

protected void unsetRegistryService(RegistryService registryService)
This method is called when the current registry service becomes un-available.

Parameters:
registryService - the current registry service instance, to be used for any cleaning-up.


Copyright © 2011 WSO2 Inc. All Rights Reserved.