Package org.glassfish.api.invocation
Class ComponentInvocation
java.lang.Object
org.glassfish.api.invocation.ComponentInvocation
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionComponentInvocation
(String componentId, ComponentInvocation.ComponentInvocationType invocationType, Object instance, Object container, Object transaction) ComponentInvocation
(String componentId, ComponentInvocation.ComponentInvocationType invocationType, Object container, String appName, String moduleName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clone()
Returns the appName for the current invocation, equivalent to the value bound to java:app/AppName, without the cost of lookup.getAuth()
Returns the moduleName for the current invocation, equivalent to the value bound to java:module/ModuleName, without the cost of lookup.gets the security context of the call that came in before a new context for runas is madegetRegistryFor
(Class key) boolean
boolean
void
setAuth
(boolean value) void
void
setInstanceName
(String instanceName) void
setJNDIEnvironment
(Object val) void
Sets the security context of the call coming invoid
setPreInvokeDone
(boolean value) void
setRegistryFor
(Class key, Object payLoad) Associate givenregistry with given
key
for this invocationvoid
void
void
void
setTransactionCompeting
(boolean value) void
setTransactionOperationsManager
(Object transactionOperationsManager)
-
Field Details
-
instance
-
container
-
jndiEnvironment
-
componentId
-
transaction
-
oldSecurityContext
-
appName
-
moduleName
-
-
Constructor Details
-
ComponentInvocation
public ComponentInvocation() -
ComponentInvocation
public ComponentInvocation(String componentId, ComponentInvocation.ComponentInvocationType invocationType, Object container, String appName, String moduleName) -
ComponentInvocation
public ComponentInvocation(String componentId, ComponentInvocation.ComponentInvocationType invocationType, Object instance, Object container, Object transaction)
-
-
Method Details
-
setJNDIEnvironment
-
getJNDIEnvironment
-
getInvocationType
-
setComponentInvocationType
-
getInstance
-
getInstanceName
-
setInstanceName
-
getComponentId
-
getContainer
-
getContainerContext
-
getTransaction
-
setTransaction
-
setTransactionOperationsManager
-
getTransactionOperationsManager
-
setOldSecurityContext
Sets the security context of the call coming in -
getOldSecurityContext
gets the security context of the call that came in before a new context for runas is made -
isTransactionCompleting
public boolean isTransactionCompleting() -
setTransactionCompeting
public void setTransactionCompeting(boolean value) -
setResourceTableKey
-
getResourceTableKey
-
setResourceHandler
-
getResourceHandler
-
getRegistryFor
- Returns:
- Registry associated with this invocation for the given
key
-
setRegistryFor
Associate givenregistry with given
key
for this invocation -
clearRegistry
public void clearRegistry() -
isPreInvokeDone
public boolean isPreInvokeDone() -
setPreInvokeDone
public void setPreInvokeDone(boolean value) -
getAuth
-
setAuth
public void setAuth(boolean value) -
getAppName
Returns the appName for the current invocation, equivalent to the value bound to java:app/AppName, without the cost of lookup. For standalone modules, returns the same value as getModuleName(). For invocations that are not on Java EE components, returns null. -
getModuleName
Returns the moduleName for the current invocation, equivalent to the value bound to java:module/ModuleName, without the cost of lookup. For invocations that are not on Jakarta EE components, returns null. -
clone
-