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.InitializingBean
Exception
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization
in interface org.springframework.beans.factory.config.BeanPostProcessor
org.springframework.beans.BeansException
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization
in interface org.springframework.beans.factory.config.BeanPostProcessor
org.springframework.beans.BeansException
public void postProcessBeforeDestruction(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeDestruction
in interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor
org.springframework.beans.BeansException
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
BundleContextAware
BundleContext
that this bean runs in. Normally this can
be used to initialize an object.setBundleContext
in interface BundleContextAware
bundleContext
- 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.BeanFactoryAware
org.springframework.beans.BeansException
public 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–2014. All rights reserved.