Package org.glassfish.api.invocation
Class InvocationManagerImpl
java.lang.Object
org.glassfish.api.invocation.InvocationManagerImpl
- All Implemented Interfaces:
InvocationManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ComponentInvocation>
Treturn the Invocation object of the component being called<T extends ComponentInvocation>
Treturn the Inovcation object of the caller return null if none exist (e.g. caller is from another VM)booleanreturn true iff no invocations on the stack for this threadGets the current application environment on the current threadvoidTo be called by the infrastructure to indicate that some user code not associated with any Jakarta EE specification is finished being called.<T extends ComponentInvocation>
voidpostInvoke(T invocation) 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>
voidpreInvoke(T invocation) To be called by a Container to indicate that the Container is about to invoke a method on a component.voidTo be called by the infrastructure to indicate that some user code not associated with any Jakarta EE specification may be called.voidregisterComponentInvocationHandler(ComponentInvocation.ComponentInvocationType type, RegisteredComponentInvocationHandler handler)
-
Constructor Details
-
InvocationManagerImpl
public InvocationManagerImpl()
-
-
Method Details
-
preInvoke
Description copied from interface:InvocationManagerTo 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:
preInvokein interfaceInvocationManager- Parameters:
invocation- the Invocation object- Throws:
InvocationException
-
postInvoke
Description copied from interface:InvocationManagerTo 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:
postInvokein interfaceInvocationManager- Parameters:
invocation- the Invocation object- Throws:
InvocationException
-
isInvocationStackEmpty
public boolean isInvocationStackEmpty()return true iff no invocations on the stack for this thread- Specified by:
isInvocationStackEmptyin interfaceInvocationManager
-
getCurrentInvocation
return the Invocation object of the component being called- Specified by:
getCurrentInvocationin interfaceInvocationManager
-
getPreviousInvocation
return the Inovcation object of the caller return null if none exist (e.g. caller is from another VM)- Specified by:
getPreviousInvocationin interfaceInvocationManager- Throws:
InvocationException
-
getAllInvocations
- Specified by:
getAllInvocationsin interfaceInvocationManager
-
registerComponentInvocationHandler
public void registerComponentInvocationHandler(ComponentInvocation.ComponentInvocationType type, RegisteredComponentInvocationHandler handler) - Specified by:
registerComponentInvocationHandlerin interfaceInvocationManager
-
pushAppEnvironment
Description copied from interface:InvocationManagerTo be called by the infrastructure to indicate that some user code not associated with any Jakarta EE specification may be called. In particular must be called by the Weld integration layer to indicate the application environment in which the portable extensions are runningThe pushAppEnvironment and popAppEnvironment must be called in pairs and well-nested.
- Specified by:
pushAppEnvironmentin interfaceInvocationManager- Parameters:
env- may not be null. Information about the application environment
-
peekAppEnvironment
Description copied from interface:InvocationManagerGets the current application environment on the current thread- Specified by:
peekAppEnvironmentin interfaceInvocationManager- Returns:
- The current ApplicationEnvironment, or null if there is none
-
popAppEnvironment
public void popAppEnvironment()Description copied from interface:InvocationManagerTo be called by the infrastructure to indicate that some user code not associated with any Jakarta EE specification is finished being called. In particular must be called by the Weld integration layer to indicate the application environment in which the portable extensions are runningThe pushAppEnvironment and popAppEnvironment must be called in pairs and well-nested.
- Specified by:
popAppEnvironmentin interfaceInvocationManager
-