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 21:06:10 UTC

svn commit: r225852 - /webservices/wsrf/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemResource.java

Author: ips
Date: Thu Jul 28 12:06:08 2005
New Revision: 225852

URL: http://svn.apache.org/viewcvs?rev=225852&view=rev
Log:
...

Modified:
    webservices/wsrf/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemResource.java

Modified: webservices/wsrf/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemResource.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemResource.java?rev=225852&r1=225851&r2=225852&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemResource.java (original)
+++ webservices/wsrf/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemResource.java Thu Jul 28 12:06:08 2005
@@ -12,7 +12,7 @@
 {
 
     /**
-     * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
+     * A NamespaceVerionHolder which maintains the XML namespaces for all specifications supported by this resource.
      */
     public static final org.apache.ws.resource.properties.v2004_06.impl.NamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.resource.properties.v2004_06.impl.NamespaceVersionHolderImpl();
 
@@ -26,21 +26,20 @@
 
         super.init();
 
-        /**
-         * The ResourcePropertySet which contains all the defined ResourceProperties
+        /*
+         * This is where you should associate the backend instance with
+         * the resource instance for a given id.
+         */
+        m_filesystem = new example.filesystem.backend.UnixFileSystem( m_id );
+
+        /*
+         * The resource property set which contains all of resource properties that were defined in the WSDL.
          */
         org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet();
         org.apache.ws.resource.properties.ResourceProperty resourceProperty = null;
 
         try
         {
-
-            /*
-             * This is where you should associate the backend instance with
-             * the resource instance for a given id.
-             */
-            m_filesystem = new example.filesystem.backend.UnixFileSystem( m_id );
-
             /*
              * Initialize each of our properties by calling resourceProperty.add(propElem) and/or resourceProperty.setCallback(callback)...
              */
@@ -96,10 +95,10 @@
         }
         catch ( Exception e )
         {
-            throw new javax.xml.rpc.JAXRPCException(
-                    "There was a problem in initializing your resource properties.  Please check your init() method. Cause: " +
+            throw new javax.xml.rpc.JAXRPCException( "There was a problem in initializing your resource properties.  Please check your init() method. Cause: " +
                     e.getLocalizedMessage() );
         }
+
         // Resource Property {http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd}TerminationTime is implemented by the framework.
         // Resource Property {http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd}CurrentTime is implemented by the framework.