org.apache.aries.blueprint.compendium.cm
Class CmManagedServiceFactory
java.lang.Object
org.apache.aries.blueprint.compendium.cm.BaseManagedServiceFactory<Object>
org.apache.aries.blueprint.compendium.cm.CmManagedServiceFactory
- All Implemented Interfaces:
- org.osgi.service.cm.ManagedServiceFactory
public class CmManagedServiceFactory
- extends BaseManagedServiceFactory<Object>
TODO: if we need to make those exported services tied to their references as for other elements
TODO: it becomes a problem as currently we would have to create a specific recipe or something like that
- Version:
- $Rev: 1365088 $, $Date: 2012-07-24 15:38:14 +0100 (Tue, 24 Jul 2012) $
|
Constructor Summary |
CmManagedServiceFactory(org.apache.aries.blueprint.services.ExtendedBlueprintContainer blueprintContainer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CmManagedServiceFactory
public CmManagedServiceFactory(org.apache.aries.blueprint.services.ExtendedBlueprintContainer blueprintContainer)
init
public void init()
throws Exception
- Throws:
Exception
destroy
public void destroy()
- Overrides:
destroy in class BaseManagedServiceFactory<Object>
getServiceMap
public Map<org.osgi.framework.ServiceRegistration,Object> getServiceMap()
setListeners
public void setListeners(List<org.apache.aries.blueprint.utils.ServiceListener> listeners)
setId
public void setId(String id)
setFactoryPid
public void setFactoryPid(String factoryPid)
setInterfaces
public void setInterfaces(List<String> interfaces)
setAutoExport
public void setAutoExport(int autoExport)
setRanking
public void setRanking(int ranking)
setServiceProperties
public void setServiceProperties(Map serviceProperties)
setManagedComponentName
public void setManagedComponentName(String managedComponentName)
setComponentDestroyMethod
public void setComponentDestroyMethod(String componentDestroyMethod)
doCreate
protected Object doCreate(Dictionary properties)
throws Exception
- Specified by:
doCreate in class BaseManagedServiceFactory<Object>
- Throws:
Exception
doUpdate
protected Object doUpdate(Object service,
Dictionary properties)
throws Exception
- Specified by:
doUpdate in class BaseManagedServiceFactory<Object>
- Throws:
Exception
doDestroy
protected void doDestroy(Object service,
Dictionary properties,
int code)
throws Exception
- Specified by:
doDestroy in class BaseManagedServiceFactory<Object>
- Throws:
Exception
postRegister
protected void postRegister(Object service,
Dictionary properties,
org.osgi.framework.ServiceRegistration registration)
- Overrides:
postRegister in class BaseManagedServiceFactory<Object>
preUnregister
protected void preUnregister(Object service,
Dictionary properties,
org.osgi.framework.ServiceRegistration registration)
- Overrides:
preUnregister in class BaseManagedServiceFactory<Object>
getExposedClasses
protected String[] getExposedClasses(Object service)
- Specified by:
getExposedClasses in class BaseManagedServiceFactory<Object>
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.