|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gemini.blueprint.compendium.internal.cm.ManagedServiceFactoryFactoryBean
public class ManagedServiceFactoryFactoryBean
Factory class that automatically manages instances based on the configuration available inside a
ManagedServiceFactory.
The factory returns a list of ServiceRegistration of all published instances.
| Field Summary | |
|---|---|
Map |
initialInjectionProperties
|
| Constructor Summary | |
|---|---|
ManagedServiceFactoryFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
Collection |
getObject()
|
Class<Collection> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setAutowireOnUpdate(boolean autowireOnUpdate)
Sets whether autowire on update should be performed automatically or not. |
void |
setBeanClassLoader(ClassLoader classLoader)
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext)
Set the BundleContext that this bean runs in. |
void |
setExportContextClassLoader(ExportContextClassLoaderEnum ccl)
|
void |
setFactoryPid(String factoryPid)
|
void |
setInterfaceDetector(InterfaceDetector detector)
|
void |
setInterfaces(Class<?>[] interfaces)
|
void |
setListeners(OsgiServiceRegistrationListener[] listeners)
Sets the listeners interested in registration and unregistration events. |
void |
setServiceProperties(Map serviceProperties)
Sets the properties used when exposing the target as an OSGi service. |
void |
setTemplateDefinition(org.springframework.beans.factory.config.BeanDefinition[] templateDefinition)
|
void |
setUpdateMethod(String updateMethod)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Map initialInjectionProperties
| Constructor Detail |
|---|
public ManagedServiceFactoryFactoryBean()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanException
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void setBundleContext(org.osgi.framework.BundleContext bundleContext)
BundleContextAwareBundleContext that this bean runs in. Normally this can
be used to initialize an object.
setBundleContext in interface BundleContextAwarebundleContext - the BundleContext object to be used
by this object
public Collection getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<Collection>Exceptionpublic Class<Collection> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<Collection>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<Collection>public void setListeners(OsgiServiceRegistrationListener[] listeners)
listeners - registration/unregistration listeners.public void setFactoryPid(String factoryPid)
factoryPid - The factoryPid to set.public void setTemplateDefinition(org.springframework.beans.factory.config.BeanDefinition[] templateDefinition)
templateDefinition - The templateDefinition to set.public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwarepublic void setInterfaceDetector(InterfaceDetector detector)
public void setExportContextClassLoader(ExportContextClassLoaderEnum ccl)
ccl - The ccl to set.public void setInterfaces(Class<?>[] interfaces)
interfaces - The interfaces to set.public void setAutowireOnUpdate(boolean autowireOnUpdate)
autowireOnUpdate - public void setUpdateMethod(String updateMethod)
updateMethod - The updateMethod to set.public void setServiceProperties(Map serviceProperties)
ServicePropertiesChangeListener), any updates to the properties will be reflected by the service
registration.
serviceProperties - properties used for exporting the target as an OSGi service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||