public class ServiceDynamicInterceptor extends ServiceInvoker implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware
log
Constructor and Description |
---|
ServiceDynamicInterceptor(org.osgi.framework.BundleContext context,
String filterClassName,
org.osgi.framework.Filter filter,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
boolean |
equals(Object other) |
OsgiServiceLifecycleListener[] |
getListeners() |
RetryTemplate |
getRetryTemplate() |
org.osgi.framework.ServiceReference |
getServiceReference()
Convenience method exposing the target (OSGi service) reference so that
subinterceptors can access it.
|
Object |
getTarget()
Determine the target object to execute the invocation upon.
|
org.osgi.framework.ServiceReference |
getTargetReference() |
int |
hashCode() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setListeners(OsgiServiceLifecycleListener[] listeners) |
void |
setMandatoryService(boolean mandatoryService) |
void |
setProxy(Object proxy) |
void |
setRetryTimeout(long timeout) |
void |
setServiceImporter(Object importer) |
void |
setServiceImporterName(String name) |
void |
setStateListeners(List stateListeners)
Internal state listeners
|
void |
setSticky(boolean sticky) |
void |
setUseBlueprintExceptions(boolean useBlueprintExceptions) |
doInvoke, invoke
public ServiceDynamicInterceptor(org.osgi.framework.BundleContext context, String filterClassName, org.osgi.framework.Filter filter, ClassLoader classLoader)
public Object getTarget()
ServiceInvoker
getTarget
in class ServiceInvoker
public org.osgi.framework.ServiceReference getTargetReference()
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
destroy
in class ServiceInvoker
public org.osgi.framework.ServiceReference getServiceReference()
getServiceReference
in interface ServiceReferenceProvider
getServiceReference
in class ServiceInvoker
public void setRetryTimeout(long timeout)
public RetryTemplate getRetryTemplate()
public OsgiServiceLifecycleListener[] getListeners()
public void setListeners(OsgiServiceLifecycleListener[] listeners)
public void setServiceImporter(Object importer)
public void setServiceImporterName(String name)
public void setMandatoryService(boolean mandatoryService)
public void setProxy(Object proxy)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
public void setStateListeners(List stateListeners)
public void setUseBlueprintExceptions(boolean useBlueprintExceptions)
public void setSticky(boolean sticky)
Copyright © 2006–2013. All rights reserved.