@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
|
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.
|
<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 |
registerComponentInvocationHandler(ComponentInvocation.ComponentInvocationType type,
RegisteredComponentInvocationHandler handler) |
<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()
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 environmentCopyright © 2017–2020 Eclipse Foundation. All rights reserved.