FileDocCategorySizeDatePackage
InvocationManager.javaAPI DocGlassfish v2 API3760Mon May 28 21:30:46 BST 2007com.sun.enterprise

InvocationManager

public interface InvocationManager
InvocationManager provides interface to keep track of component context on a per-thread basis
author
Tony Ng

Fields Summary
Constructors Summary
Methods Summary
public java.util.ListgetAllInvocations()

public ComponentInvocationgetCurrentInvocation()
Returns the current Invocation object associated with the current thread

public ComponentInvocationgetPreviousInvocation()
Returns the previous Invocation object associated with the current thread. Returns null if there is none. This is typically used when a component A calls another component B within the same VM. In this case, it might be necessary to obtain information related to both component A using getPreviousInvocation() and B using getCurrentInvocation()

public booleanisInvocationStackEmpty()
return true iff no invocations on the stack for this thread

public booleanisStartupInvocation()

public voidpostInvoke(ComponentInvocation inv)
To be called by a Container to indicate that the Container has just completed the invocation of a method on a component. The preInvoke and postInvoke must be called in pairs and well-nested.

param
inv the Invocation object

public voidpreInvoke(ComponentInvocation inv)
To be called by a Container to indicate that the Container is about to invoke a method on a component. The preInvoke and postInvoke must be called in pairs and well-nested.

param
inv the Invocation object