|
Service Activator Toolkit
Version 1.0.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
ManagedServiceFactoryBundleActivator.java
| Field Summary |
| 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 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)
|
Map |
getAllObjects()
Get all the objects created for this ManagedServiceFactory. |
Iterator |
getAllPids()
Get all the persistent IDs for this ManagedServiceFactory. |
Map |
getAllProperties()
Get the properties of all the objects create for this ManagedServiceFactory. |
protected String |
getManagedServiceFactoryServiceName()
Get the service name used to register the ManagedServiceFactory
with the OSGi framework. |
String |
getName()
|
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 |
printFactoryConfigurationsOn(StringBuffer buffer)
Print a description of the factory configurations on the specified buffer. |
void |
updated(String pid,
Dictionary properties)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 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 Map getAllObjects()
ManagedServiceFactory.
public Iterator getAllPids()
ManagedServiceFactory.
public Map getAllProperties()
ManagedServiceFactory.
protected final String getManagedServiceFactoryServiceName()
ManagedServiceFactory
with the OSGi framework. Per the OSGi specification, this must be the
full qualified name of the ManagedServiceFactory type.
public String getName()
getName in interface ManagedServiceFactoryManagedServiceFactory.getName()protected final String getPid()
ManagedServiceFactory.
protected boolean isProxyService()
public void printFactoryConfigurationsOn(StringBuffer buffer)
buffer - The buffer on which to print the factory configurations.
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.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2001, 2007 IBM Corporation and others. All Rights Reserved.