Package org.glassfish.api.invocation
Class ComponentInvocation
- java.lang.Object
-
- org.glassfish.api.invocation.ComponentInvocation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComponentInvocation.ComponentInvocationType
-
Field Summary
Fields Modifier and Type Field Description protected String
appName
String
componentId
Object
container
Object
instance
Object
jndiEnvironment
protected String
moduleName
Object
oldSecurityContext
Object
transaction
-
Constructor Summary
Constructors Constructor Description ComponentInvocation()
ComponentInvocation(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
-
-
-
Field Detail
-
instance
public Object instance
-
container
public Object container
-
jndiEnvironment
public Object jndiEnvironment
-
componentId
public String componentId
-
transaction
public Object transaction
-
oldSecurityContext
public Object oldSecurityContext
-
appName
protected String appName
-
moduleName
protected String moduleName
-
-
Constructor Detail
-
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 Detail
-
setJNDIEnvironment
public void setJNDIEnvironment(Object val)
-
getJNDIEnvironment
public Object getJNDIEnvironment()
-
getInvocationType
public ComponentInvocation.ComponentInvocationType getInvocationType()
-
setComponentInvocationType
public void setComponentInvocationType(ComponentInvocation.ComponentInvocationType t)
-
getInstance
public Object getInstance()
-
getInstanceName
public String getInstanceName()
-
setInstanceName
public void setInstanceName(String instanceName)
-
getComponentId
public String getComponentId()
-
getContainer
public Object getContainer()
-
getContainerContext
public Object getContainerContext()
-
getTransaction
public Object getTransaction()
-
setTransaction
public void setTransaction(Object t)
-
setTransactionOperationsManager
public void setTransactionOperationsManager(Object transactionOperationsManager)
-
getTransactionOperationsManager
public Object getTransactionOperationsManager()
-
setOldSecurityContext
public void setOldSecurityContext(Object sc)
Sets the security context of the call coming in
-
getOldSecurityContext
public Object 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
public void setResourceTableKey(Object key)
-
getResourceTableKey
public Object getResourceTableKey()
-
setResourceHandler
public void setResourceHandler(ResourceHandler h)
-
getResourceHandler
public ResourceHandler getResourceHandler()
-
getRegistryFor
public Object getRegistryFor(Class key)
- Returns:
- Registry associated with this invocation for the given
key
-
setRegistryFor
public void setRegistryFor(Class key, Object payLoad)
Associate givenregistry with given
key
for this invocation
-
clearRegistry
public void clearRegistry()
-
isPreInvokeDone
public boolean isPreInvokeDone()
-
setPreInvokeDone
public void setPreInvokeDone(boolean value)
-
getAuth
public Boolean getAuth()
-
setAuth
public void setAuth(boolean value)
-
getAppName
public String 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
public String 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 Java EE components, returns null.
-
clone
public ComponentInvocation clone()
-
-