|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.deployment.interceptor.AbstractLifecycleInterceptorService
public abstract class AbstractLifecycleInterceptorService
A basic service that manages bundle lifecycle interceptors.
| Constructor Summary | |
|---|---|
protected |
AbstractLifecycleInterceptorService(BundleContext context)
|
| Method Summary | |
|---|---|
protected void |
addInterceptor(LifecycleInterceptor interceptor)
Add a LifecycleInterceptor to the service. |
protected java.util.List<LifecycleInterceptor> |
getInterceptorChain()
|
protected abstract InvocationContext |
getInvocationContext(Bundle bundle)
Get the InvocationContext for the given bundle. |
BundleContext |
getSystemContext()
|
void |
handleStateChange(int state,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractLifecycleInterceptorService(BundleContext context)
| Method Detail |
|---|
public BundleContext getSystemContext()
protected void addInterceptor(LifecycleInterceptor interceptor)
interceptor - The interceptorprotected void removeInterceptor(LifecycleInterceptor interceptor)
interceptor - The interceptorprotected java.util.List<LifecycleInterceptor> getInterceptorChain()
public void handleStateChange(int state,
Bundle bundle)
handleStateChange in interface LifecycleInterceptorServicestate - The future state of the bundlebundle - The bundle that changes state
LifecycleInterceptorException - if the invocation of an interceptor failsprotected abstract InvocationContext getInvocationContext(Bundle bundle)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||