|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.osgi.deployment.interceptor.AbstractLifecycleInterceptorService
public abstract class AbstractLifecycleInterceptorService
A basic service that manages bundle lifecycle interceptors.
Constructor Summary | |
---|---|
protected |
AbstractLifecycleInterceptorService(org.osgi.framework.BundleContext context)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractLifecycleInterceptorService(org.osgi.framework.BundleContext context)
Method Detail |
---|
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 state
LifecycleInterceptorException
- if the invocation of an interceptor failsprotected abstract InvocationContext getInvocationContext(org.osgi.framework.Bundle bundle)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |