org.globus.wsrf.impl.servicegroup.inmemory
Class InMemoryServiceGroupFactory

java.lang.Object
  extended byorg.globus.wsrf.impl.servicegroup.inmemory.InMemoryServiceGroupFactory
All Implemented Interfaces:
java.rmi.Remote, ResourceProperties, ServiceGroupFactoryPortType

public class InMemoryServiceGroupFactory
extends java.lang.Object
implements ServiceGroupFactoryPortType, ResourceProperties

A factory implementation for creating new InMemoryServiceGroups.


Field Summary
private  GetMultipleResourcePropertiesProvider getMultipleResourcePropertiesProvider
           
private  GetResourcePropertyProvider getResourcePropertyProvider
           
private static org.apache.commons.logging.Log logger
           
(package private)  ResourcePropertySet propSet
           
private  QueryResourcePropertiesProvider queryResourcePropertiesProvider
           
static javax.xml.namespace.QName RP_SET
          I don't think this gets used for anything in the core yet?
 
Constructor Summary
InMemoryServiceGroupFactory()
           
 
Method Summary
 CreateResponse create(Create request)
           
 GetMultipleResourcePropertiesResponse getMultipleResourceProperties(GetMultipleResourceProperties_Element request)
           
static java.lang.Object getResourceJNDIParameter(java.lang.String name)
          Returns a named parameter from the present service's JNDI block.
 GetResourcePropertyResponse getResourceProperty(javax.xml.namespace.QName name)
           
 ResourcePropertySet getResourcePropertySet()
           
 QueryResourcePropertiesResponse queryResourceProperties(QueryResourceProperties_Element request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.commons.logging.Log logger

queryResourcePropertiesProvider

private QueryResourcePropertiesProvider queryResourcePropertiesProvider

getMultipleResourcePropertiesProvider

private GetMultipleResourcePropertiesProvider getMultipleResourcePropertiesProvider

getResourcePropertyProvider

private GetResourcePropertyProvider getResourcePropertyProvider

RP_SET

public static final javax.xml.namespace.QName RP_SET
I don't think this gets used for anything in the core yet?


propSet

ResourcePropertySet propSet
Constructor Detail

InMemoryServiceGroupFactory

public InMemoryServiceGroupFactory()
Method Detail

create

public CreateResponse create(Create request)
                      throws java.rmi.RemoteException
Specified by:
create in interface ServiceGroupFactoryPortType
Throws:
java.rmi.RemoteException

queryResourceProperties

public QueryResourcePropertiesResponse queryResourceProperties(QueryResourceProperties_Element request)
                                                        throws java.rmi.RemoteException,
                                                               InvalidResourcePropertyQNameFaultType,
                                                               InvalidQueryExpressionFaultType,
                                                               QueryEvaluationErrorFaultType,
                                                               ResourceUnknownFaultType,
                                                               UnknownQueryExpressionDialectFaultType
Throws:
java.rmi.RemoteException
InvalidResourcePropertyQNameFaultType
InvalidQueryExpressionFaultType
QueryEvaluationErrorFaultType
ResourceUnknownFaultType
UnknownQueryExpressionDialectFaultType

getMultipleResourceProperties

public GetMultipleResourcePropertiesResponse getMultipleResourceProperties(GetMultipleResourceProperties_Element request)
                                                                    throws java.rmi.RemoteException,
                                                                           InvalidResourcePropertyQNameFaultType,
                                                                           ResourceUnknownFaultType
Throws:
java.rmi.RemoteException
InvalidResourcePropertyQNameFaultType
ResourceUnknownFaultType

getResourceProperty

public GetResourcePropertyResponse getResourceProperty(javax.xml.namespace.QName name)
                                                throws java.rmi.RemoteException,
                                                       InvalidResourcePropertyQNameFaultType,
                                                       ResourceUnknownFaultType
Throws:
java.rmi.RemoteException
InvalidResourcePropertyQNameFaultType
ResourceUnknownFaultType

getResourcePropertySet

public ResourcePropertySet getResourcePropertySet()
Specified by:
getResourcePropertySet in interface ResourceProperties

getResourceJNDIParameter

public static java.lang.Object getResourceJNDIParameter(java.lang.String name)
                                                 throws java.lang.Exception
Returns a named parameter from the present service's JNDI block.
TODO: a unit test for this would be to call and check that we get the same answer back as using the resource context getResourceHome call
TODO: this could be factored out into some other class? ResourceContext?

Throws:
java.lang.Exception