org.openejb.core.stateless
Class EncReference

java.lang.Object
  extended by org.openejb.core.ivm.naming.ENCReference
      extended by org.openejb.core.stateless.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.


Field Summary
 
Fields inherited from class org.openejb.core.ivm.naming.ENCReference
checking, ref
 
Constructor Summary
EncReference(Reference ref)
           
 
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 org.openejb.core.ivm.naming.ENCReference
getObject, setChecking
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncReference

public EncReference(Reference ref)
Method Detail

checkOperation

public void checkOperation(byte operation)
                    throws javax.naming.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 stateless bean is in the correct state before the super class can return the requested reference object.

Specified by:
checkOperation in class ENCReference
Throws:
javax.naming.NameNotFoundException


Copyright © 1999-2011 OpenEJB. All Rights Reserved.