@Service @Singleton public class InvocationManagerImpl extends Object implements InvocationManager
| Constructor and Description |
|---|
InvocationManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
List |
getAllInvocations() |
<T extends ComponentInvocation> |
getCurrentInvocation()
return the Invocation object of the component
being called
|
<T extends ComponentInvocation> |
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
|
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) |
public <T extends ComponentInvocation> void preInvoke(T inv) throws InvocationException
InvocationManagerpreInvoke in interface InvocationManagerinv - the Invocation objectInvocationExceptionpublic <T extends ComponentInvocation> void postInvoke(T inv) throws InvocationException
InvocationManagerpostInvoke in interface InvocationManagerinv - the Invocation objectInvocationExceptionpublic boolean isInvocationStackEmpty()
isInvocationStackEmpty in interface InvocationManagerpublic <T extends ComponentInvocation> T getCurrentInvocation()
getCurrentInvocation in interface InvocationManagerpublic <T extends ComponentInvocation> T getPreviousInvocation() throws InvocationException
getPreviousInvocation in interface InvocationManagerInvocationExceptionpublic List getAllInvocations()
getAllInvocations in interface InvocationManagerpublic void registerComponentInvocationHandler(ComponentInvocation.ComponentInvocationType type, RegisteredComponentInvocationHandler handler)
registerComponentInvocationHandler in interface InvocationManagerpublic void pushAppEnvironment(ApplicationEnvironment env)
InvocationManagerThe pushAppEnvironment and popAppEnvironment must be called in pairs and well-nested.
pushAppEnvironment in interface InvocationManagerenv - may not be null. Information about the application environmentpublic ApplicationEnvironment peekAppEnvironment()
InvocationManagerpeekAppEnvironment in interface InvocationManagerpublic void popAppEnvironment()
InvocationManagerThe pushAppEnvironment and popAppEnvironment must be called in pairs and well-nested.
popAppEnvironment in interface InvocationManagerCopyright © 2017–2020 Eclipse Foundation. All rights reserved.