User: fleury  
  Date: 00/06/02 02:19:48

  Added:       src/main/org/jboss/ejb/plugins
                        StatefulSessionInstancePool.java
  Log:
  The silliest class in the world
  
  Revision  Changes    Path
  1.1                  
jboss/src/main/org/jboss/ejb/plugins/StatefulSessionInstancePool.java
  
  Index: StatefulSessionInstancePool.java
  ===================================================================
  /*
  * jBoss, the OpenSource EJB server
  *
  * Distributable under GPL license.
  * See terms of license at gnu.org.
  */
  package org.jboss.ejb.plugins;
  
  import java.rmi.RemoteException;
  
  import org.jboss.ejb.Container;
  import org.jboss.ejb.EnterpriseContext;
  import org.jboss.ejb.StatefulSessionEnterpriseContext;
  
  /**
  *     An empty shadow class, used to keep symmetry in the code  
  *      
  *     @see <related>
  *   @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
  *     @version $Revision: 1.1 $
  */
  public class StatefulSessionInstancePool
  extends AbstractInstancePool
  {
        // Constants -----------------------------------------------------
        
        // Attributes ----------------------------------------------------
        
        // Static --------------------------------------------------------
        
        // Constructors --------------------------------------------------
        
        // Public --------------------------------------------------------
        
        public synchronized void free(EnterpriseContext ctx)
        {
                discard(ctx);
        }
        
        // Protected -----------------------------------------------------
        protected EnterpriseContext create(Object instance, Container con)
        throws RemoteException
        {
                // The instance is created by the parent and is a newInstance();
                return new StatefulSessionEnterpriseContext(instance, getContainer());
        }
        
        // Private -------------------------------------------------------
        
        // Inner classes -------------------------------------------------
  
  }
  
  
  
  

Reply via email to