org.apache.hivemind.lib.impl
Class EJBProxyFactory

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.hivemind.lib.impl.EJBProxyFactory
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, org.apache.hivemind.ServiceImplementationFactory

public class EJBProxyFactory
extends org.apache.hivemind.impl.BaseLocatable
implements org.apache.hivemind.ServiceImplementationFactory

An implementation of ServiceImplementationFactory that can create a proxy to a stateless session EJB. Using this factory, it is easy to create a HiveMind service wrapper around the actual EJB.

The parameters for the factory are used to identify the JNDI name of the session EJB's home interface.

Author:
Howard Lewis Ship

Constructor Summary
EJBProxyFactory()
           
 
Method Summary
 java.lang.Object createCoreServiceImplementation(org.apache.hivemind.ServiceImplementationFactoryParameters factoryParameters)
           
 void setClassFactory(org.apache.hivemind.service.ClassFactory factory)
           
 void setCoordinator(RemoteExceptionCoordinator coordinator)
           
 void setNameLookup(NameLookup lookup)
           
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBProxyFactory

public EJBProxyFactory()
Method Detail

createCoreServiceImplementation

public java.lang.Object createCoreServiceImplementation(org.apache.hivemind.ServiceImplementationFactoryParameters factoryParameters)
Specified by:
createCoreServiceImplementation in interface org.apache.hivemind.ServiceImplementationFactory

setClassFactory

public void setClassFactory(org.apache.hivemind.service.ClassFactory factory)

setCoordinator

public void setCoordinator(RemoteExceptionCoordinator coordinator)

setNameLookup

public void setNameLookup(NameLookup lookup)