org.glassfish.api.invocation
Class InvocationManagerImpl

java.lang.Object
  extended by org.glassfish.api.invocation.InvocationManagerImpl
All Implemented Interfaces:
InvocationManager

@Service
@Scoped(value=org.jvnet.hk2.component.Singleton.class)
public class InvocationManagerImpl
extends java.lang.Object
implements InvocationManager


Field Summary
static boolean debug
           
 
Constructor Summary
InvocationManagerImpl()
           
 
Method Summary
 java.util.List getAllInvocations()
           
<T extends ComponentInvocation>
T
getCurrentInvocation()
          return the Invocation object of the component being called
<T extends ComponentInvocation>
T
getPreviousInvocation()
          return the Inovcation object of the caller return null if none exist (e.g.
 boolean isInvocationStackEmpty()
          return true iff no invocations on the stack for this thread
<T extends ComponentInvocation>
void
postInvoke(T inv)
          To be called by a Container to indicate that the Container has just completed the invocation of a method on a component.
<T extends ComponentInvocation>
void
preInvoke(T inv)
          To be called by a Container to indicate that the Container is about to invoke a method on a component.
 void registerComponentInvocationHandler(ComponentInvocation.ComponentInvocationType type, RegisteredComponentInvocationHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static boolean debug
Constructor Detail

InvocationManagerImpl

public InvocationManagerImpl()
Method Detail

preInvoke

public <T extends ComponentInvocation> void preInvoke(T inv)
               throws InvocationException
Description copied from interface: InvocationManager
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.

Specified by:
preInvoke in interface InvocationManager
Parameters:
inv - the Invocation object
Throws:
InvocationException

postInvoke

public <T extends ComponentInvocation> void postInvoke(T inv)
                throws InvocationException
Description copied from interface: InvocationManager
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.

Specified by:
postInvoke in interface InvocationManager
Parameters:
inv - the Invocation object
Throws:
InvocationException

isInvocationStackEmpty

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

Specified by:
isInvocationStackEmpty in interface InvocationManager

getCurrentInvocation

public <T extends ComponentInvocation> T getCurrentInvocation()
return the Invocation object of the component being called

Specified by:
getCurrentInvocation in interface InvocationManager

getPreviousInvocation

public <T extends ComponentInvocation> T getPreviousInvocation()
                                                    throws InvocationException
return the Inovcation object of the caller return null if none exist (e.g. caller is from another VM)

Specified by:
getPreviousInvocation in interface InvocationManager
Throws:
InvocationException

getAllInvocations

public java.util.List getAllInvocations()
Specified by:
getAllInvocations in interface InvocationManager

registerComponentInvocationHandler

public void registerComponentInvocationHandler(ComponentInvocation.ComponentInvocationType type,
                                               RegisteredComponentInvocationHandler handler)
Specified by:
registerComponentInvocationHandler in interface InvocationManager


Copyright © 2012 GlassFish Community. All Rights Reserved.