public class InterceptorWrapper extends Object implements LifecycleInterceptor
RELATIVE_ORDER_DEFAULT
Constructor and Description |
---|
InterceptorWrapper(LifecycleInterceptor delegate) |
Modifier and Type | Method and Description |
---|---|
Set<Class<?>> |
getInput()
Get the required set of inputs.
|
Set<Class<?>> |
getOutput()
Get the provided set of outputs.
|
int |
getRelativeOrder()
Get the relative order of this interceptor
|
void |
invoke(int state,
InvocationContext context)
Called by the
LifecycleInterceptorService when the
given bundle is about to change to the given state |
String |
toLongString() |
String |
toString() |
public InterceptorWrapper(LifecycleInterceptor delegate)
public Set<Class<?>> getInput()
LifecycleInterceptor
getInput
in interface LifecycleInterceptor
public Set<Class<?>> getOutput()
LifecycleInterceptor
getOutput
in interface LifecycleInterceptor
public int getRelativeOrder()
LifecycleInterceptor
getRelativeOrder
in interface LifecycleInterceptor
public void invoke(int state, InvocationContext context) throws LifecycleInterceptorException
LifecycleInterceptor
LifecycleInterceptorService
when the
given bundle is about to change to the given stateinvoke
in interface LifecycleInterceptor
state
- The future state of the bundlecontext
- The interceptor contextLifecycleInterceptorException
- if the invocation of the interceptor failspublic String toLongString()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.