public class ManagedServiceInstanceTrackerPostProcessor extends 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
| Constructor and Description |
|---|
ManagedServiceInstanceTrackerPostProcessor(String beanNameToTrack) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
void |
postProcessBeforeDestruction(Object bean,
String beanName) |
Object |
postProcessBeforeInitialization(Object bean,
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(String pid)
Sets the pid for the configuration manager.
|
void |
setUpdateMethod(String methodName)
Sets the method name, for bean-managed update strategy.
|
public ManagedServiceInstanceTrackerPostProcessor(String beanNameToTrack)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic void postProcessBeforeDestruction(Object bean, 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(String pid)
pid - The pid to set.public void setAutowireOnUpdate(boolean autowireOnUpdate)
autowireOnUpdate - public void setUpdateMethod(String methodName)
updateMethod - The updateMethod to set.Copyright © 2006-2013. All Rights Reserved.