You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by ip...@apache.org on 2005/07/28 21:07:10 UTC

svn commit: r225854 - in /webservices/muse/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem: FilesystemHome.java FilesystemResource.java

Author: ips
Date: Thu Jul 28 12:07:06 2005
New Revision: 225854

URL: http://svn.apache.org/viewcvs?rev=225854&view=rev
Log:
removed call to TopicUtils#initNotifProducerProps() in init()


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

Modified: webservices/muse/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemHome.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemHome.java?rev=225854&r1=225853&r2=225854&view=diff
==============================================================================
--- webservices/muse/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemHome.java (original)
+++ webservices/muse/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemHome.java Thu Jul 28 12:07:06 2005
@@ -1,8 +1,5 @@
-
 package org.apache.ws.resource.example.filesystem;
 
-
-
 /**
  * The home for Filesystem resources.
  * <p />
@@ -45,10 +42,8 @@
     public void init() throws Exception
     {
         super.init();
-        FilesystemResource lvol1Resource = (FilesystemResource) createInstance( LVOL1_ID );
-        add( lvol1Resource );
-        FilesystemResource lvol2Resource = (FilesystemResource) createInstance( LVOL1_ID );
-        add( lvol2Resource );
+        add( createInstance( LVOL1_ID ) );
+        add( createInstance( LVOL2_ID ) );
     }
 
     public javax.xml.namespace.QName getServiceName()

Modified: webservices/muse/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemResource.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemResource.java?rev=225854&r1=225853&r2=225854&view=diff
==============================================================================
--- webservices/muse/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemResource.java (original)
+++ webservices/muse/trunk/src/examples/filesystem/src/java/org/apache/ws/resource/example/filesystem/FilesystemResource.java Thu Jul 28 12:07:06 2005
@@ -30,6 +30,10 @@
     {
         super.init();
 
+        /*
+         * 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 );
 
         /*
@@ -189,6 +193,7 @@
             throw new RuntimeException( "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.
         // Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}FixedTopicSet is implemented by the framework.
@@ -210,6 +215,7 @@
             throw new RuntimeException(
                     "Unable to init the ResourceTermination topic. Cause: " + e.getLocalizedMessage(), e );
         }
+
         /**
          * This method call will make all resource properties be exposed
          * as Topics.  If you would like to change that behaviour you can
@@ -227,25 +233,6 @@
                     "Unable to init the ResourceProperty Changed topics. Cause: " + e.getLocalizedMessage(), e );
         }
 
-        /**
-         * Initializes the Topic, TopicExpressionDialects and FixedTopicSet resource properties
-         *
-         * </br>
-         * <strong>NOTE this MUST be called last in the Resource.init() method to ensure all topics get registered</strong>
-         * </br>
-         * FixedTopicSet will be set based on the value returned from the {@see TopicSpaceSet#isFixed()} method.
-         * </br>
-         * Topic will have all root topics in the TopicSpaceSet, set to Simple dialect AND all child topics set ot
-         * Concrete dialect.
-         * </br>
-         *
-         * TopicExpressionDialects will be set to the engine's known Topic Dialects acquired from the TopicExpressionEngine
-         *
-         * @param topicSpaceSet
-         * @param propSet
-         */
-        org.apache.ws.notification.topics.util.TopicUtils.initNotificationProducerProperties( getTopicSpaceSet(),
-                getResourcePropertySet() );
     }
 
     public void mount() throws Exception



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org