public abstract class AbstractLifecycleInterceptorService extends Object implements LifecycleInterceptorService, org.osgi.framework.ServiceListener
Modifier | Constructor and Description |
---|---|
protected |
AbstractLifecycleInterceptorService(org.osgi.framework.BundleContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
addInterceptor(LifecycleInterceptor interceptor)
Add a LifecycleInterceptor to the service.
|
protected List<LifecycleInterceptor> |
getInterceptorChain() |
protected abstract InvocationContext |
getInvocationContext(org.osgi.framework.Bundle bundle)
Get the InvocationContext for the given bundle.
|
org.osgi.framework.BundleContext |
getSystemContext() |
void |
handleStateChange(int state,
org.osgi.framework.Bundle bundle)
Invoke the registered set of interceptors for the given bundle state change.
|
protected void |
removeInterceptor(LifecycleInterceptor interceptor)
Remove an LifecycleInterceptor to the service.
|
void |
serviceChanged(org.osgi.framework.ServiceEvent event) |
protected AbstractLifecycleInterceptorService(org.osgi.framework.BundleContext context)
public org.osgi.framework.BundleContext getSystemContext()
public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged
in interface org.osgi.framework.ServiceListener
protected void addInterceptor(LifecycleInterceptor interceptor)
interceptor
- The interceptorprotected void removeInterceptor(LifecycleInterceptor interceptor)
interceptor
- The interceptorprotected List<LifecycleInterceptor> getInterceptorChain()
public void handleStateChange(int state, org.osgi.framework.Bundle bundle)
handleStateChange
in interface LifecycleInterceptorService
state
- The future state of the bundlebundle
- The bundle that changes stateLifecycleInterceptorException
- if the invocation of an interceptor failsprotected abstract InvocationContext getInvocationContext(org.osgi.framework.Bundle bundle)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.