|
Service Activator Toolkit
Version 1.1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.soda.sat.core.framework.BaseBundleActivator
org.eclipse.soda.sat.core.framework.ManagedServiceBundleActivator
public abstract class ManagedServiceBundleActivator
| Field Summary | |
|---|---|
protected static String |
CONFIGURATION_ADMIN_SERVICE_NAME
|
protected static String |
MANAGED_SERVICE_SERVICE_NAME
|
| Fields inherited from class org.eclipse.soda.sat.core.framework.BaseBundleActivator |
|---|
NO_SERVICES |
| Constructor Summary | |
|---|---|
ManagedServiceBundleActivator()
|
|
| Method Summary | |
|---|---|
protected void |
activate()
Hook API: This method is overridden by subclasses that wish to execute domain specific activation. |
protected void |
collectImportedServiceNames(Set serviceNames)
Hook API: This method is extended by subclasses that have required imported services. |
protected abstract IManagedServiceAdvisor |
createAdvisor()
Create the IManagedServiceAdvisor that knows how
to create and destroy the exported service that is managed by the
service. |
protected String |
createDefaultPid()
Create the default PID for the ManagedService. |
protected String |
createPid()
Create the PID for the ManagedService. |
protected void |
deactivate()
Hook API: You have been deactivated. |
protected String |
getPid()
Get the persistent ID for the ManagedService. |
protected boolean |
isProxyService()
Query whether the managed service is created as a proxy service. |
void |
updated(Dictionary properties)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String CONFIGURATION_ADMIN_SERVICE_NAME
protected static final String MANAGED_SERVICE_SERVICE_NAME
| Constructor Detail |
|---|
public ManagedServiceBundleActivator()
| Method Detail |
|---|
protected void activate()
BaseBundleActivator
protected void activate() {
MyDomainObject object = (MyDomainObject) getExportedService(MyService.SERVICE_NAME);
object.startup();
}
activate in class BaseBundleActivatorBaseBundleActivator.activate()protected void collectImportedServiceNames(Set serviceNames)
BaseBundleActivatorgetImportedServiceNames().
collectImportedServiceNames in class BaseBundleActivatorserviceNames - A Set into which collected service
names must be added.BaseBundleActivator.collectImportedServiceNames(java.util.Set)protected abstract IManagedServiceAdvisor createAdvisor()
IManagedServiceAdvisor that knows how
to create and destroy the exported service that is managed by the
service.
protected final String createDefaultPid()
ManagedService.
ManagedService.protected String createPid()
ManagedService.
ManagedService.protected void deactivate()
BaseBundleActivator
protected void deactivate() {
MyDomainObject object = (MyDomainObject) getExportedService(MyService.SERVICE_NAME);
object.shutdown();
}
deactivate in class BaseBundleActivatorBaseBundleActivator.deactivate()protected final String getPid()
ManagedService.
protected boolean isProxyService()
public void updated(Dictionary properties)
throws ConfigurationException
updated in interface ManagedServiceConfigurationExceptionManagedService.updated(java.util.Dictionary)
|
Service Activator Toolkit
Version 1.1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2001, 2008 IBM Corporation and others. All Rights Reserved.