public class OsgiServiceLifecycleListenerAdapter extends Object implements OsgiServiceLifecycleListener, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware
| Constructor and Description |
|---|
OsgiServiceLifecycleListenerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
bind(Object service,
Map properties)
Called when a service is being binded inside the proxy (be it single or multi value).
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setBindMethod(String bindMethod) |
void |
setBlueprintCompliant(boolean compliant) |
void |
setTarget(Object target) |
void |
setTargetBeanName(String targetName) |
void |
setUnbindMethod(String unbindMethod) |
void |
unbind(Object service,
Map properties)
Called when a service is being unbinded inside the proxy (be it single or multi value).
|
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void bind(Object service, Map properties) throws Exception
OsgiServiceLifecycleListenerMap which can be safely cast to a Dictionary if needed.bind in interface OsgiServiceLifecycleListenerservice - the OSGi service instanceproperties - the service propertiesException - custom exception that is logged but not propagated to other listenerspublic void unbind(Object service, Map properties) throws Exception
OsgiServiceLifecycleListenerMap which can be safely cast to a Dictionary if needed.unbind in interface OsgiServiceLifecycleListenerservice - the OSGi service instanceproperties - the service propertiesException - custom exception that is logged but not propagated to other listenerspublic void setBindMethod(String bindMethod)
bindMethod - The bindMethod to set.public void setUnbindMethod(String unbindMethod)
unbindMethod - The unbindMethod to set.public void setTarget(Object target)
public void setTargetBeanName(String targetName)
public void setBlueprintCompliant(boolean compliant)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionCopyright © 2006–2016. All rights reserved.