org.apache.openejb.core
Class CoreContext
java.lang.Object
org.apache.openejb.core.CoreContext
- All Implemented Interfaces:
- Serializable
public abstract class CoreContext
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SECURITY_METHOD
public static final byte SECURITY_METHOD
- See Also:
- Constant Field Values
USER_TRANSACTION_METHOD
public static final byte USER_TRANSACTION_METHOD
- See Also:
- Constant Field Values
ROLLBACK_METHOD
public static final byte ROLLBACK_METHOD
- See Also:
- Constant Field Values
EJBOBJECT_METHOD
public static final byte EJBOBJECT_METHOD
- See Also:
- Constant Field Values
EJBHOME_METHOD
public static final byte EJBHOME_METHOD
- See Also:
- Constant Field Values
CoreContext
public CoreContext(TransactionManager transactionManager,
SecurityService securityService)
CoreContext
protected CoreContext(TransactionManager transactionManager,
SecurityService securityService,
UserTransaction userTransaction)
checkBeanState
public abstract void checkBeanState(byte methodCategory)
throws IllegalStateException
- Throws:
IllegalStateException
getCallerPrincipal
public Principal getCallerPrincipal()
isCallerInRole
public boolean isCallerInRole(String roleName)
getEJBHome
public javax.ejb.EJBHome getEJBHome()
getEJBObject
public javax.ejb.EJBObject getEJBObject()
getEJBLocalObject
public javax.ejb.EJBLocalObject getEJBLocalObject()
getBusinessObject
public Object getBusinessObject(Class interfce)
getEJBLocalHome
public javax.ejb.EJBLocalHome getEJBLocalHome()
getTimerService
public javax.ejb.TimerService getTimerService()
getPrimaryKey
public Object getPrimaryKey()
getRollbackOnly
public boolean getRollbackOnly()
setRollbackOnly
public void setRollbackOnly()
getUserTransaction
public UserTransaction getUserTransaction()
lookup
public Object lookup(String name)
- Lookup a resource within the component's private naming context.
- Parameters:
name
- - Name of the entry (relative to java:comp/env).
- Returns:
- The looked-up object.
- See Also:
http://java.sun.com/javaee/5/docs/api/javax/ejb/EJBContext.html#lookup(java.lang.String)
,
"Core Contracts and Requirements", section 4.5.2, table 2.
isCallerInRole
public boolean isCallerInRole(Identity role)
getCallerIdentity
public Identity getCallerIdentity()
getEnvironment
public Properties getEnvironment()
newEjbObjectHandler
protected abstract EjbObjectProxyHandler newEjbObjectHandler(RpcContainer container,
Object pk,
Object depID,
InterfaceType interfaceType)
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.