org.jboss.osgi.deployment.internal
Class InterceptorWrapper

java.lang.Object
  extended by org.jboss.osgi.deployment.internal.InterceptorWrapper
All Implemented Interfaces:
LifecycleInterceptor

public class InterceptorWrapper
extends Object
implements LifecycleInterceptor

A wrapper around lifecycle interceptors.

Since:
15-Oct-2009
Author:
thomas.diesler@jboss.com

Field Summary
 
Fields inherited from interface org.jboss.osgi.deployment.interceptor.LifecycleInterceptor
RELATIVE_ORDER_DEFAULT
 
Constructor Summary
InterceptorWrapper(LifecycleInterceptor delegate)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterceptorWrapper

public InterceptorWrapper(LifecycleInterceptor delegate)
Method Detail

getInput

public Set<Class<?>> getInput()
Description copied from interface: LifecycleInterceptor
Get the required set of inputs.

Specified by:
getInput in interface LifecycleInterceptor
Returns:
null if there are no inputs required

getOutput

public Set<Class<?>> getOutput()
Description copied from interface: LifecycleInterceptor
Get the provided set of outputs.

Specified by:
getOutput in interface LifecycleInterceptor
Returns:
null if there are no outputs provided

getRelativeOrder

public int getRelativeOrder()
Description copied from interface: LifecycleInterceptor
Get the relative order of this interceptor

Specified by:
getRelativeOrder in interface LifecycleInterceptor

invoke

public void invoke(int state,
                   InvocationContext context)
            throws LifecycleInterceptorException
Description copied from interface: LifecycleInterceptor
Called by the LifecycleInterceptorService when the given bundle is about to change to the given state

Specified by:
invoke in interface LifecycleInterceptor
Parameters:
state - The future state of the bundle
context - The interceptor context
Throws:
LifecycleInterceptorException - if the invocation of the interceptor fails

toLongString

public String toLongString()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.