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/08/01 17:56:08 UTC
svn commit: r226831 -
/webservices/wsrf/trunk/src/site/content/xdocs/tutorial/mod_resource.xml
Author: ips
Date: Mon Aug 1 08:56:06 2005
New Revision: 226831
URL: http://svn.apache.org/viewcvs?rev=226831&view=rev
Log:
added decl of m_filesystem member var to code block
Modified:
webservices/wsrf/trunk/src/site/content/xdocs/tutorial/mod_resource.xml
Modified: webservices/wsrf/trunk/src/site/content/xdocs/tutorial/mod_resource.xml
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/site/content/xdocs/tutorial/mod_resource.xml?rev=226831&r1=226830&r2=226831&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/site/content/xdocs/tutorial/mod_resource.xml (original)
+++ webservices/wsrf/trunk/src/site/content/xdocs/tutorial/mod_resource.xml Mon Aug 1 08:56:06 2005
@@ -20,8 +20,13 @@
<title>Modify the Resource Class</title>
<p>Open <code>WORK_DIR/generated/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemResource.java</code> and
replace the <code>public void init()</code> method with the following method. You will also need to copy the custom operation methods below.</p>
- <source><![CDATA[
-public void init()
+ <source><![CDATA[
+ /*
+ * An mock object representing the filesystem being exposed as a WS-Resource.
+ */
+ private example.filesystem.backend.FileSystem m_filesystem;
+
+ public void init()
{
super.init();
@@ -30,7 +35,7 @@
* 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 );
+ m_filesystem = new example.filesystem.backend.UnixFileSystem( (String)getID() );
/*
* The resource property set which contains all of resource properties that were defined in the WSDL.