Package org.glassfish.api.invocation
Class ComponentInvocation
java.lang.Object
org.glassfish.api.invocation.ComponentInvocation
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionComponentInvocation
(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 theappName
for the current invocation, equivalent to the value bound tojava:app/AppName
, without the cost of lookup.getAuth()
Returns themoduleName
for the current invocation, equivalent to the value bound tojava:module/ModuleName
, without the cost of lookup.Gets the security context of the call that came in before a new context for runas is made.getRegistryFor
(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 in.void
setPreInvokeDone
(boolean value) void
setRegistryFor
(Class<?> key, Object payLoad) Associate givenregistry
with givenkey
for this invocation.void
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 givenkey
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 theappName
for the current invocation, equivalent to the value bound tojava: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 themoduleName
for the current invocation, equivalent to the value bound tojava:module/ModuleName
, without the cost of lookup.For invocations that are not on Jakarta EE components, returns
null
. -
clone
-