org.globus.wsrf.impl
Class ServiceResourceHome

java.lang.Object
  extended by org.globus.wsrf.impl.SingletonResourceHome
      extended by org.globus.wsrf.impl.ServiceResourceHome
All Implemented Interfaces:
Initializable, ResourceHome

public class ServiceResourceHome
extends SingletonResourceHome
implements Initializable

A ResourceHome that always returns its corresponding service object, in response to a null key. Note that the service MUST have been deployed with application scope (for example, with wsdl parameter scope set to value Application); otherwise there is no meaningful single object for this class to return. Also MUST be deployed with loadOnStartup parameter set to true.


Field Summary
private static org.globus.util.I18n i18n
           
private  Resource service
           
 
Constructor Summary
ServiceResourceHome()
           
 
Method Summary
protected  Resource findSingleton()
          Finds the service object associated with this resource home.
 void initialize()
           
 
Methods inherited from class org.globus.wsrf.impl.SingletonResourceHome
find, getKeyTypeClass, getKeyTypeName, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i18n

private static org.globus.util.I18n i18n

service

private Resource service
Constructor Detail

ServiceResourceHome

public ServiceResourceHome()
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface Initializable
Throws:
java.lang.Exception

findSingleton

protected Resource findSingleton()
                          throws ResourceException
Finds the service object associated with this resource home.

Specified by:
findSingleton in class SingletonResourceHome
Throws:
ResourceException