org.openejb.core.stateful
Class EncReference
java.lang.Object
org.openejb.core.ivm.naming.ENCReference
org.openejb.core.stateful.EncReference
- All Implemented Interfaces:
- Reference
public class EncReference
- extends ENCReference
This class is a wrapper for an Intra-VM EJB or Connector references in the
JNDI ENC of a entity bean. When the getObject( ) method is invoked the
Operation is checked to ensure that its is allowed for the bean's current state.
Method Summary |
void |
checkOperation(byte operation)
This method is invoked by the ENCReference super class each time its
getObject() method is called within the container system. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncReference
public EncReference(Reference ref)
checkOperation
public void checkOperation(byte operation)
throws NameNotFoundException
- This method is invoked by the ENCReference super class each time its
getObject() method is called within the container system. This checkOperation
method ensures that the stateful bean is in the correct state before the super
class can return the requested reference object.
- Specified by:
checkOperation
in class ENCReference
- Throws:
NameNotFoundException
Copyright © 1999-2012 OpenEJB. All Rights Reserved.