@Contract
public interface InvocationManager
| Modifier and Type | Method and Description |
|---|---|
List<? extends ComponentInvocation> |
getAllInvocations() |
<T extends ComponentInvocation> |
getCurrentInvocation()
Returns the current Invocation object associated with the current thread
|
<T extends ComponentInvocation> |
getPreviousInvocation()
Returns the previous Invocation object associated with the current thread.
|
boolean |
isInvocationStackEmpty()
return true iff no invocations on the stack for this thread
|
ApplicationEnvironment |
peekAppEnvironment()
Gets the current application environment on the current thread
|
Method |
peekWebServiceMethod() |
List<? extends ComponentInvocation> |
popAllInvocations()
Useful to temp clear the invocation list for example when spawning a new Thread
to prevent potential classloader leaks.
|
void |
popAppEnvironment()
To be called by the infrastructure to indicate that some user code not associated with any Java EE specification is
finished being called.
|
void |
popWebServiceMethod() |
<T extends ComponentInvocation> |
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> |
preInvoke(T inv)
To be called by a Container to indicate that the Container is about to invoke a method on a component.
|
void |
pushAppEnvironment(ApplicationEnvironment env)
To be called by the infrastructure to indicate that some user code not associated with any Java EE specification may
be called.
|
void |
pushWebServiceMethod(Method method) |
void |
putAllInvocations(List<? extends ComponentInvocation> invocations)
Useful to temp clear the invocation list for example when spawning a new Thread
to prevent potential classloader leaks.
|
void |
registerComponentInvocationHandler(ComponentInvocation.ComponentInvocationType type,
RegisteredComponentInvocationHandler handler) |
default void |
setThreadInheritableInvocation(List<? extends ComponentInvocation> parentValue)
Installs the given invocation as thread local in the same way as would be done automatically at
thread creation time.
|
<T extends ComponentInvocation> void preInvoke(T inv) throws InvocationException
inv - the Invocation objectInvocationException<T extends ComponentInvocation> void postInvoke(T inv) throws InvocationException
inv - the Invocation objectInvocationException<T extends ComponentInvocation> T getCurrentInvocation()
<T extends ComponentInvocation> T getPreviousInvocation() throws InvocationException
InvocationExceptionboolean isInvocationStackEmpty()
List<? extends ComponentInvocation> getAllInvocations()
default void setThreadInheritableInvocation(List<? extends ComponentInvocation> parentValue)
parentValue - the invocation stack from the parent threadList<? extends ComponentInvocation> popAllInvocations()
void putAllInvocations(List<? extends ComponentInvocation> invocations)
void registerComponentInvocationHandler(ComponentInvocation.ComponentInvocationType type, RegisteredComponentInvocationHandler handler)
void pushAppEnvironment(ApplicationEnvironment env)
The pushAppEnvironment and popAppEnvironment must be called in pairs and well-nested.
env - may not be null. Information about the application environmentApplicationEnvironment peekAppEnvironment()
void popAppEnvironment()
The pushAppEnvironment and popAppEnvironment must be called in pairs and well-nested.
env - may not be null. Information about the application environmentvoid pushWebServiceMethod(Method method)
Method peekWebServiceMethod()
void popWebServiceMethod()
Copyright © 2019. All rights reserved.