org.jboss.osgi.deployment.interceptor
Interface LifecycleInterceptor

All Known Implementing Classes:
AbstractLifecycleInterceptor

public interface LifecycleInterceptor

An OSGi bundle lifecycle interceptor.

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

Field Summary
static int RELATIVE_ORDER_DEFAULT
          The default relative order: 1000
 
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
 

Field Detail

RELATIVE_ORDER_DEFAULT

static final int RELATIVE_ORDER_DEFAULT
The default relative order: 1000

See Also:
Constant Field Values
Method Detail

getRelativeOrder

int getRelativeOrder()
Get the relative order of this interceptor


getInput

Set<Class<?>> getInput()
Get the required set of inputs.

Returns:
null if there are no inputs required

getOutput

Set<Class<?>> getOutput()
Get the provided set of outputs.

Returns:
null if there are no outputs provided

invoke

void invoke(int state,
            InvocationContext context)
            throws LifecycleInterceptorException
Called by the LifecycleInterceptorService when the given bundle is about to change to the given state

Parameters:
state - The future state of the bundle
context - The interceptor context
Throws:
LifecycleInterceptorException - if the invocation of the interceptor fails


Copyright © 2011. All Rights Reserved.