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 TypeMethodDescriptionvoidclone()Returns theappNamefor the current invocation, equivalent to the value bound tojava:app/AppName, without the cost of lookup.getAuth()Returns themoduleNamefor 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) booleanbooleanvoidsetAuth(boolean value) voidvoidsetInstanceName(String instanceName) voidsetJNDIEnvironment(Object val) voidSets the security context of the call coming in.voidsetPreInvokeDone(boolean value) voidsetRegistryFor(Class<?> key, Object payLoad) Associate givenregistrywith givenkeyfor this invocation.voidvoidvoidvoidsetTransactionCompeting(boolean value) voidsetTransactionOperationsManager(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 givenregistrywith givenkeyfor 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 theappNamefor 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 themoduleNamefor 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
-