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.InitializingBean
public void bind(Object service, Map properties) throws Exception
OsgiServiceLifecycleListener
Map
which can be safely cast to a Dictionary
if needed.bind
in interface OsgiServiceLifecycleListener
service
- 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
OsgiServiceLifecycleListener
Map
which can be safely cast to a Dictionary
if needed.unbind
in interface OsgiServiceLifecycleListener
service
- 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.BeanFactoryAware
org.springframework.beans.BeansException
Copyright © 2006–2015. All rights reserved.