org.apache.aries.blueprint.compendium.cm
Class CmManagedServiceFactory

java.lang.Object
  extended by org.apache.aries.blueprint.compendium.cm.BaseManagedServiceFactory<Object>
      extended by 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) $

Field Summary
 
Fields inherited from class org.apache.aries.blueprint.compendium.cm.BaseManagedServiceFactory
BUNDLE_STOPPING, CONFIGURATION_ADMIN_OBJECT_DELETED, DEFAULT_TIMEOUT_BEFORE_INTERRUPT, INTERNAL_ERROR
 
Constructor Summary
CmManagedServiceFactory(org.apache.aries.blueprint.services.ExtendedBlueprintContainer blueprintContainer)
           
 
Method Summary
 void destroy()
           
protected  Object doCreate(Dictionary properties)
           
protected  void doDestroy(Object service, Dictionary properties, int code)
           
protected  Object doUpdate(Object service, Dictionary properties)
           
protected  String[] getExposedClasses(Object service)
           
 Map<org.osgi.framework.ServiceRegistration,Object> getServiceMap()
           
 void init()
           
protected  void postRegister(Object service, Dictionary properties, org.osgi.framework.ServiceRegistration registration)
           
protected  void preUnregister(Object service, Dictionary properties, org.osgi.framework.ServiceRegistration registration)
           
 void setAutoExport(int autoExport)
           
 void setComponentDestroyMethod(String componentDestroyMethod)
           
 void setFactoryPid(String factoryPid)
           
 void setId(String id)
           
 void setInterfaces(List<String> interfaces)
           
 void setListeners(List<org.apache.aries.blueprint.utils.ServiceListener> listeners)
           
 void setManagedComponentName(String managedComponentName)
           
 void setRanking(int ranking)
           
 void setServiceProperties(Map serviceProperties)
           
 
Methods inherited from class org.apache.aries.blueprint.compendium.cm.BaseManagedServiceFactory
checkConfiguration, deleted, getName, getServices, updated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmManagedServiceFactory

public CmManagedServiceFactory(org.apache.aries.blueprint.services.ExtendedBlueprintContainer blueprintContainer)
Method Detail

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.