jrun.ejb
Class EntityInstanceFactory

java.lang.Object
  |
  +--jrun.ejb.EntityInstanceFactory

public class EntityInstanceFactory
extends java.lang.Object

This factory allows newInstance() and setSessionContext() calls to be located in one place and shared by the EntityContainer and the EntityPersistenceManager.

Author:
Paul Reilly

Constructor Summary
EntityInstanceFactory()
           
 
Method Summary
static Instance createInstance(EntityContainer entityContainer, boolean localInvocation, boolean homeInvocation, java.lang.Object proxy)
          This method is useful for creating an instance to be added to the instance pool.
static void initInstance(EntityContainer entityContainer, Instance instance, boolean localInvocation, boolean homeInvocation, java.lang.Object proxy)
          This method is useful for reinitializing an instance that had it's enterprise bean removed.
static void initInstanceContext(InstanceContext instanceContext, EntityContainer entityContainer, boolean localInvocation, java.lang.Object securityID, java.lang.Object id, java.lang.Object proxy)
          This method is used to initialize the instance context's EJBLocalObject and EJBObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityInstanceFactory

public EntityInstanceFactory()
Method Detail

createInstance

public static Instance createInstance(EntityContainer entityContainer,
                                      boolean localInvocation,
                                      boolean homeInvocation,
                                      java.lang.Object proxy)
                               throws java.lang.Exception
This method is useful for creating an instance to be added to the instance pool.

initInstance

public static void initInstance(EntityContainer entityContainer,
                                Instance instance,
                                boolean localInvocation,
                                boolean homeInvocation,
                                java.lang.Object proxy)
                         throws java.lang.Exception
This method is useful for reinitializing an instance that had it's enterprise bean removed.

initInstanceContext

public static void initInstanceContext(InstanceContext instanceContext,
                                       EntityContainer entityContainer,
                                       boolean localInvocation,
                                       java.lang.Object securityID,
                                       java.lang.Object id,
                                       java.lang.Object proxy)
                                throws java.lang.Exception
This method is used to initialize the instance context's EJBLocalObject and EJBObject.


Copyright � 2002 Macromedia Corporation. All Rights Reserved.