Class ActivationServiceComponent
- java.lang.Object
-
- org.wso2.carbon.activation.internal.ActivationServiceComponent
-
public class ActivationServiceComponent extends Object
The Declarative Service Component for the Service Activation Module for Tenants.
-
-
Constructor Summary
Constructors Constructor Description ActivationServiceComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivate(org.osgi.service.component.ComponentContext context)Activates the Registry Kernel bundle.protected voiddeactivate(org.osgi.service.component.ComponentContext context)Deactivates the Registry Kernel bundle.protected voidsetConfigurationContextService(org.wso2.carbon.utils.ConfigurationContextService contextService)Method to set the configuration context service used.protected voidsetRealmService(org.wso2.carbon.user.core.service.RealmService realmService)Method to set the realm service used.protected voidsetRegistryService(org.wso2.carbon.registry.core.service.RegistryService registryService)Method to set the registry service used.protected voidunsetConfigurationContextService(org.wso2.carbon.utils.ConfigurationContextService contextService)This method is called when the current configuration context service becomes un-available.protected voidunsetRealmService(org.wso2.carbon.user.core.service.RealmService realmService)This method is called when the current realm service becomes un-available.protected voidunsetRegistryService(org.wso2.carbon.registry.core.service.RegistryService registryService)This method is called when the current registry service becomes un-available.
-
-
-
Method Detail
-
activate
protected void activate(org.osgi.service.component.ComponentContext context)
Activates the Registry Kernel bundle.- Parameters:
context- the OSGi component context.
-
deactivate
protected void deactivate(org.osgi.service.component.ComponentContext context)
Deactivates the Registry Kernel bundle.- Parameters:
context- the OSGi component context.
-
setRegistryService
protected void setRegistryService(org.wso2.carbon.registry.core.service.RegistryService registryService)
Method to set the registry service used. This will be used when accessing the registry. This method is called when the OSGi Registry Service is available.- Parameters:
registryService- the registry service.
-
unsetRegistryService
protected void unsetRegistryService(org.wso2.carbon.registry.core.service.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.
-
setRealmService
protected void setRealmService(org.wso2.carbon.user.core.service.RealmService realmService)
Method to set the realm service used. This will be used when accessing the user realm. This method is called when the OSGi Realm Service is available.- Parameters:
realmService- the realm service.
-
unsetRealmService
protected void unsetRealmService(org.wso2.carbon.user.core.service.RealmService realmService)
This method is called when the current realm service becomes un-available.- Parameters:
realmService- the current realm service instance, to be used for any cleaning-up.
-
setConfigurationContextService
protected void setConfigurationContextService(org.wso2.carbon.utils.ConfigurationContextService contextService)
Method to set the configuration context service used. This method is called when the OSGi ConfigurationContext Service is available.- Parameters:
contextService- the configuration context service.
-
unsetConfigurationContextService
protected void unsetConfigurationContextService(org.wso2.carbon.utils.ConfigurationContextService contextService)
This method is called when the current configuration context service becomes un-available.- Parameters:
contextService- the current configuration context service instance, to be used for any cleaning-up.
-
-