You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-commits@ws.apache.org by ip...@apache.org on 2005/07/28 22:16:01 UTC

svn commit: r225870 - /webservices/wsrf/trunk/src/templates/Home.vm

Author: ips
Date: Thu Jul 28 13:15:59 2005
New Revision: 225870

URL: http://svn.apache.org/viewcvs?rev=225870&view=rev
Log:
added comment describing how to create/add a singleton resource

Modified:
    webservices/wsrf/trunk/src/templates/Home.vm

Modified: webservices/wsrf/trunk/src/templates/Home.vm
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/templates/Home.vm?rev=225870&r1=225869&r2=225870&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/templates/Home.vm (original)
+++ webservices/wsrf/trunk/src/templates/Home.vm Thu Jul 28 13:15:59 2005
@@ -62,10 +62,12 @@
     public void init() throws Exception
     {
         super.init();
-        // You may create and add any known resource instances here.
-        //String instance1_id = "00000001";
-        //${capitalServiceName}Resource instance1 = (${capitalServiceName}Resource) createInstance( instance1_id );
-        //add( instance1_id, instance1 );
+        // TODO: Create and add any known resource instances here.
+        // If this is home for a singleton service (i.e. a service that exposes exactly one resource),
+        // use null as the resource identifier when creating the instance.
+        //String instance1Id = "00000001";
+        //${capitalServiceName}Resource instance1 = (${capitalServiceName}Resource) createInstance( instance1Id );
+        //add( instance1 );
     }    
     
     public QName getServiceName()
@@ -92,4 +94,5 @@
     {
         return SPEC_NAMESPACE_SET; 
     }
+    
 }