|
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.ManagedServiceFactoryBundleActivator
public abstract class ManagedServiceFactoryBundleActivator
ManagedServiceFactoryBundleActivator is an abstract class from
which all SAT managed service factory bundles typically derive their
BundleActivator.
| Field Summary | |
|---|---|
protected static String |
CONFIGURATION_ADMIN_SERVICE_NAME
|
protected static String |
MANAGED_SERVICE_FACTORY_SERVICE_NAME
|
protected static int |
NUMBER_OF_CONFIGURATIONS_HINT
|
| Fields inherited from class org.eclipse.soda.sat.core.framework.BaseBundleActivator |
|---|
NO_SERVICES |
| Constructor Summary | |
|---|---|
ManagedServiceFactoryBundleActivator()
|
|
| 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 IManagedServiceFactoryAdvisor |
createAdvisor()
Create the IManagedServiceFactoryAdvisor that knows how
to create and destroy the exported service that is managed by the
service factory. |
protected String |
createDefaultPid()
Create the default PID for the ManagedServiceFactory. |
protected String |
createPid()
Create the PID for the ManagedServiceFactory. |
protected void |
deactivate()
Hook API: You have been deactivated. |
void |
deleted(String pid)
|
String |
getName()
|
protected int |
getNumberOfConfigurationsHint()
Get a hint to the number of configurations that will be created for this ManagedServiceFactory. |
protected String |
getPid()
Get the persistent ID for the ManagedServiceFactory. |
protected boolean |
isProxyService()
Query whether the managed service factory is created as a proxy service. |
void |
updated(String pid,
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_FACTORY_SERVICE_NAME
protected static final int NUMBER_OF_CONFIGURATIONS_HINT
| Constructor Detail |
|---|
public ManagedServiceFactoryBundleActivator()
| 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 IManagedServiceFactoryAdvisor createAdvisor()
IManagedServiceFactoryAdvisor that knows how
to create and destroy the exported service that is managed by the
service factory.
protected final String createDefaultPid()
ManagedServiceFactory.
ManagedServiceFactory.protected String createPid()
ManagedServiceFactory.
ManagedServiceFactory.protected void deactivate()
BaseBundleActivator
protected void deactivate() {
MyDomainObject object = (MyDomainObject) getExportedService(MyService.SERVICE_NAME);
object.shutdown();
}
deactivate in class BaseBundleActivatorBaseBundleActivator.deactivate()public final void deleted(String pid)
deleted in interface ManagedServiceFactoryManagedServiceFactory.deleted(java.lang.String)public String getName()
getName in interface ManagedServiceFactoryManagedServiceFactory.getName()protected int getNumberOfConfigurationsHint()
ManagedServiceFactory.
protected final String getPid()
ManagedServiceFactory.
protected boolean isProxyService()
public final void updated(String pid,
Dictionary properties)
throws ConfigurationException
updated in interface ManagedServiceFactoryConfigurationExceptionManagedServiceFactory.updated(java.lang.String, 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.