org.globus.mds.aggregator.impl
Class SingletonAggregatorHome

java.lang.Object
  extended byorg.globus.wsrf.impl.SingletonResourceHome
      extended byorg.globus.mds.aggregator.impl.SingletonAggregatorHome
All Implemented Interfaces:
org.globus.wsrf.jndi.Destroyable, org.globus.wsrf.ResourceHome

public class SingletonAggregatorHome
extends org.globus.wsrf.impl.SingletonResourceHome
implements org.globus.wsrf.jndi.Destroyable

This home provides a singleton home that creates a single resource based on JNDI parameter, configured in the same way as ResourceHomeImpl:
resourceClass - configures the name of the resource class. For example:

    <parameter>
     <name>resourceClass</name>
     <value>org.globus.wsrf.samples.counter.PersistentCounter</value>
    </parameter>
    


Field Summary
protected  org.globus.wsrf.Resource resource
           
protected  Class resourceClass
           
 
Constructor Summary
SingletonAggregatorHome()
           
 
Method Summary
 void destroy()
           
protected  org.globus.wsrf.Resource findSingleton()
           
 void setResourceClass(String clazz)
           
 
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

resourceClass

protected Class resourceClass

resource

protected org.globus.wsrf.Resource resource
Constructor Detail

SingletonAggregatorHome

public SingletonAggregatorHome()
Method Detail

setResourceClass

public void setResourceClass(String clazz)
                      throws ClassNotFoundException
Throws:
ClassNotFoundException

findSingleton

protected org.globus.wsrf.Resource findSingleton()
                                          throws org.globus.wsrf.ResourceException
Throws:
org.globus.wsrf.ResourceException

destroy

public void destroy()
Specified by:
destroy in interface org.globus.wsrf.jndi.Destroyable


Copyright © 1999-2006 University of Chicago. All rights reserved.