org.jboss.dependency.spi.dispatch
Interface LifecycleDispatchContext

All Superinterfaces:
AttributeDispatchContext, InvokeDispatchContext
All Known Subinterfaces:
KernelControllerContext
All Known Implementing Classes:
AbstractKernelControllerContext, UnmodifiableKernelControllerContext

public interface LifecycleDispatchContext
extends InvokeDispatchContext

This context knows how to handle lifecycle invocation. Resulting in valid lifecycle invocation will force this context to change state.

Author:
Ales Justin

Method Summary
 ControllerState lifecycleInvocation(String name, Object[] parameters, String[] signature)
          Is this invocation a lifecycle invocation.
 
Methods inherited from interface org.jboss.dependency.spi.dispatch.InvokeDispatchContext
getClassLoader, invoke
 
Methods inherited from interface org.jboss.dependency.spi.dispatch.AttributeDispatchContext
get, set
 

Method Detail

lifecycleInvocation

ControllerState lifecycleInvocation(String name,
                                    Object[] parameters,
                                    String[] signature)
                                    throws Throwable
Is this invocation a lifecycle invocation. Return state value to which this context should be moved or return current state if we're already past the lifecycle state or null if the invocation is actually not a lifecycle invocation.

Parameters:
name - method name
parameters - parameter values
signature - method's parameter types / signatures
Returns:
state to which we should move this context, or null if this is not lifecycle invocation
Throws:
Throwable - for any error


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.