public class ManagedServiceInstanceTrackerPostProcessor extends java.lang.Object implements org.springframework.beans.factory.BeanFactoryAware, BundleContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Field and Description |
|---|---|
private boolean |
autowireOnUpdate |
private org.springframework.beans.factory.BeanFactory |
beanFactory |
private org.osgi.framework.BundleContext |
bundleContext |
private DefaultManagedServiceBeanManager |
managedServiceManager |
private java.lang.String |
pid |
private java.lang.String |
trackedBean |
private java.lang.String |
updateMethod |
| Constructor and Description |
|---|
ManagedServiceInstanceTrackerPostProcessor(java.lang.String beanNameToTrack) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
java.lang.Object |
postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName) |
void |
postProcessBeforeDestruction(java.lang.Object bean,
java.lang.String beanName) |
java.lang.Object |
postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName) |
void |
setAutowireOnUpdate(boolean autowireOnUpdate)
Sets whether autowire on update should be performed automatically or not.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext)
Set the
BundleContext that this bean runs in. |
void |
setPersistentId(java.lang.String pid)
Sets the pid for the configuration manager.
|
void |
setUpdateMethod(java.lang.String methodName)
Sets the method name, for bean-managed update strategy.
|
private final java.lang.String trackedBean
private DefaultManagedServiceBeanManager managedServiceManager
private java.lang.String pid
private java.lang.String updateMethod
private boolean autowireOnUpdate
private org.osgi.framework.BundleContext bundleContext
private org.springframework.beans.factory.BeanFactory beanFactory
public ManagedServiceInstanceTrackerPostProcessor(java.lang.String beanNameToTrack)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exceptionpublic java.lang.Object postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName)
throws org.springframework.beans.BeansException
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic java.lang.Object postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName)
throws org.springframework.beans.BeansException
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic void postProcessBeforeDestruction(java.lang.Object bean,
java.lang.String beanName)
throws org.springframework.beans.BeansException
postProcessBeforeDestruction in interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessororg.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 objectpublic 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 setPersistentId(java.lang.String pid)
pid - The pid to set.public void setAutowireOnUpdate(boolean autowireOnUpdate)
autowireOnUpdate - public void setUpdateMethod(java.lang.String methodName)
updateMethod - The updateMethod to set.