|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.ogsa.impl.core.factory.EJBFactoryCallback
This class looks up an EJB using parameters from the server-config.wsdd file. It instantiates the delegation skeleton created by EJBServiceBuilder.
Nested Class Summary | |
protected static class |
EJBFactoryCallback.CreateInfo
|
Field Summary | |
protected java.util.HashMap |
createMethodMap
Map from jndiName to CreateInfo - A static inner class that stores the type of ejb and its create/find method |
Constructor Summary | |
EJBFactoryCallback()
|
Method Summary | |
protected EJBFactoryCallback.CreateInfo |
cacheCreateMethod(javax.ejb.EJBHome home,
java.lang.String jndiName)
Figures out if the ejb is a session or entity bean and enters the proper create or find method in the cache. |
protected java.lang.Object |
convertStringToPrimaryKey(java.lang.String pkString,
java.lang.Class pkClass)
|
GridServiceBase |
createServiceObject(ExtensibilityType extensibility,
ExtensibilityTypeHolder extensibilityOutput)
creates a new Grid service instance that implements the GridServiceBase |
protected javax.ejb.EJBObject |
getRemote(javax.ejb.EJBHome home,
ExtensibilityType extensibility)
Subclasses can override this to use a different create or find method, maybe depending on parameters in the ExtensibilityType |
void |
initialize(GridServiceBase base)
associates this object with its GridServiceBase service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.HashMap createMethodMap
Constructor Detail |
public EJBFactoryCallback()
Method Detail |
protected javax.ejb.EJBObject getRemote(javax.ejb.EJBHome home, ExtensibilityType extensibility)
protected EJBFactoryCallback.CreateInfo cacheCreateMethod(javax.ejb.EJBHome home, java.lang.String jndiName) throws java.rmi.RemoteException, java.lang.NoSuchMethodException
java.rmi.RemoteException
java.lang.NoSuchMethodException
protected java.lang.Object convertStringToPrimaryKey(java.lang.String pkString, java.lang.Class pkClass)
public void initialize(GridServiceBase base) throws GridServiceException
FactoryCallback
initialize
in interface FactoryCallback
base
- factory service that this factory callback should create services for
GridServiceException
- if the callback object could not be initializedpublic GridServiceBase createServiceObject(ExtensibilityType extensibility, ExtensibilityTypeHolder extensibilityOutput) throws GridServiceException
FactoryCallback
GridServiceBase interface
- Specified by:
createServiceObject
in interface FactoryCallback
- Parameters:
extensibility
- parameters the client may pass to the factory at creation time
- Throws:
GridServiceException
- if the service instance could not be created
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |