hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r233200 - in /jakarta/hivemind/trunk/examples/src: descriptor/META-INF/ documentation/content/xdocs/hivemind-examples/
Date Wed, 17 Aug 2005 17:05:07 GMT
Author: hlship
Date: Wed Aug 17 10:04:58 2005
New Revision: 233200

URL: http://svn.apache.org/viewcvs?rev=233200&view=rev
Log:
Add missing copyrights.
Move examples to org.apache.examples (to satisfy the license on Clover).

Modified:
    jakarta/hivemind/trunk/examples/src/descriptor/META-INF/examples.xml
    jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.discussions.xml
    jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.mail.xml
    jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.startup.xml
    jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/logging.xml
    jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/panorama.xml
    jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/setters.xml

Modified: jakarta/hivemind/trunk/examples/src/descriptor/META-INF/examples.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/descriptor/META-INF/examples.xml?rev=233200&r1=233199&r2=233200&view=diff
==============================================================================
--- jakarta/hivemind/trunk/examples/src/descriptor/META-INF/examples.xml (original)
+++ jakarta/hivemind/trunk/examples/src/descriptor/META-INF/examples.xml Wed Aug 17 10:04:58
2005
@@ -1,5 +1,21 @@
 <?xml version="1.0"?>
-<module id="examples" version="1.0.0" package="org.apache.hivemind.examples">
+<!-- 
+   Copyright 2005 The Apache Software Foundation
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+
+<module id="examples" version="1.0.0" package="org.apache.examples">
     <service-point id="Adder">
         <create-instance class="impl.AdderImpl"/>
         <interceptor service-id="hivemind.LoggingInterceptor"/>

Modified: jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.discussions.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.discussions.xml?rev=233200&r1=233199&r2=233200&view=diff
==============================================================================
--- jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.discussions.xml (original)
+++ jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.discussions.xml Wed Aug
17 10:04:58 2005
@@ -15,7 +15,7 @@
    limitations under the License.
 -->
 
-<module id="panorama.discussions" version="1.0.0" package="com.panorama.discussions">
+<module id="panorama.discussions" version="1.0.0" package="org.apache.examples.panorama.discussions">
   
   Panorama Discussions module -- demonstrates the use of a static method startup task.
     

Modified: jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.mail.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.mail.xml?rev=233200&r1=233199&r2=233200&view=diff
==============================================================================
--- jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.mail.xml (original)
+++ jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.mail.xml Wed Aug 17 10:04:58
2005
@@ -15,7 +15,7 @@
    limitations under the License.
 -->
 
-<module id="panorama.mail" version="1.0.0" package="com.panorama.mail">
+<module id="panorama.mail" version="1.0.0" package="org.apache.examples.panorama.mail">
   
   Panorama Mail module -- demonstrates use of a startup service.
     
@@ -23,7 +23,7 @@
     <task executable="service:MailStartup" id="mail" title="Mail"/>
   </contribution>
   
-  <service-point id="MailStartup" interface="com.panorama.startup.Executable">
+  <service-point id="MailStartup" interface="org.apache.examples.panorama.startup.Executable">
     <create-instance class="MailStartup"/>
   </service-point>
 </module>

Modified: jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.startup.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.startup.xml?rev=233200&r1=233199&r2=233200&view=diff
==============================================================================
--- jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.startup.xml (original)
+++ jakarta/hivemind/trunk/examples/src/descriptor/META-INF/panorama.startup.xml Wed Aug 17
10:04:58 2005
@@ -15,7 +15,7 @@
    limitations under the License.
 -->
 
-<module id="panorama.startup" version="1.0.0" package="com.panorama.startup">
+<module id="panorama.startup" version="1.0.0" package="org.apache.examples.panorama.startup">
   
   Startup logic for Panorama.
     

Modified: jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/logging.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/logging.xml?rev=233200&r1=233199&r2=233200&view=diff
==============================================================================
--- jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/logging.xml
(original)
+++ jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/logging.xml
Wed Aug 17 10:04:58 2005
@@ -52,7 +52,7 @@
   <p> Interceptors are created by interceptor factories, which are themselves HiveMind
services. Interceptor factories 
     implement the &api.ServiceInterceptorFactory; interface. </p>
   <p> Our implementation is very simple: </p>
-  <javasource><![CDATA[package org.apache.hivemind.examples.impl;
+  <javasource><![CDATA[package org.apache.examples.impl;
 
 import java.lang.reflect.InvocationHandler;
 import java.lang.reflect.Proxy;
@@ -113,7 +113,7 @@
 another interceptor instance, or may be the core service implementation.
 </p>
 
-<javasource><![CDATA[package org.apache.hivemind.examples.impl;
+<javasource><![CDATA[package org.apache.examples.impl;
 
 import java.lang.reflect.InvocationHandler;
 import java.lang.reflect.InvocationTargetException;
@@ -199,7 +199,7 @@
 
 <xmlsource><![CDATA[
 <service-point id="ProxyLoggingInterceptor" interface="org.apache.hivemind.ServiceInterceptorFactory">
-  <create-instance class="org.apache.hivemind.examples.impl.ProxyLoggingInterceptorFactory"/>
+  <create-instance class="org.apache.examples.impl.ProxyLoggingInterceptorFactory"/>
 </service-point>]]></xmlsource>
   
 </section>
@@ -212,7 +212,7 @@
 </p>  
 
 <xmlsource><![CDATA[
-<module id="examples" version="1.0.0" package="org.apache.hivemind.examples">
+<module id="examples" version="1.0.0" package="org.apache.examples">
 
     . . . 
     
@@ -231,7 +231,7 @@
 </p>
 
 <javasource>
-<![CDATA[package org.apache.hivemind.examples;
+<![CDATA[package org.apache.examples;
 
 import java.util.List;
 
@@ -249,13 +249,13 @@
 The implementation class is equally inspiring:  
 </p>
 
-<javasource><![CDATA[package org.apache.hivemind.examples.impl;
+<javasource><![CDATA[package org.apache.examples.impl;
 
 import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.hivemind.ApplicationRuntimeException;
-import org.apache.hivemind.examples.TargetService;
+import org.apache.examples.TargetService;
 
 public class TargetServiceImpl implements TargetService
 {
@@ -316,15 +316,15 @@
 Target [DEBUG] BEGIN exceptionThrower()
 Target [DEBUG] EXCEPTION exceptionThrower() -- org.apache.hivemind.ApplicationRuntimeException
 org.apache.hivemind.ApplicationRuntimeException: Some application exception.
-        at org.apache.hivemind.examples.impl.TargetServiceImpl.exceptionThrower(TargetServiceImpl.java:35)
+        at org.apache.examples.impl.TargetServiceImpl.exceptionThrower(TargetServiceImpl.java:35)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
-        at org.apache.hivemind.examples.impl.ProxyLoggingInvocationHandler.invoke(ProxyLoggingInvocationHandler.java:38)
+        at org.apache.examples.impl.ProxyLoggingInvocationHandler.invoke(ProxyLoggingInvocationHandler.java:38)
         at $Proxy0.exceptionThrower(Unknown Source)
         at $SingletonProxy_fe67f7e0ae_12.exceptionThrower($SingletonProxy_fe67f7e0ae_12.java)
-        at org.apache.hivemind.examples.LoggingMain.main(LoggingMain.java:27)
+        at org.apache.examples.LoggingMain.main(LoggingMain.java:27)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Modified: jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/panorama.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/panorama.xml?rev=233200&r1=233199&r2=233200&view=diff
==============================================================================
--- jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/panorama.xml
(original)
+++ jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/panorama.xml
Wed Aug 17 10:04:58 2005
@@ -237,7 +237,7 @@
 <section>
   <title>Executable.java</title>
 
-<javasourcefile file="examples/src/java/com/panorama/startup/Executable.java" />
+<javasourcefile file="examples/src/java/org/apache/examples/panorama/startup/Executable.java"
/>
 
 <p>
 The Executable interface is implemented by tasks, and by services or other objects that need
to
@@ -251,7 +251,7 @@
 <section>
   <title>Task.java</title>
   
-<javasourcefile file="examples/src/java/com/panorama/startup/impl/Task.java" />
+<javasourcefile file="examples/src/java/org/apache/examples/panorama/startup/impl/Task.java"
/>
 
 <p>
 The Task class is a wrapper around an Executable object; whether that's a service, some arbitrary
object,
@@ -264,7 +264,7 @@
   <title>ExecuteStatic.java</title>
 
 
-<javasourcefile file="examples/src/java/com/panorama/startup/impl/ExecuteStatic.java"
/>
+<javasourcefile file="examples/src/java/org/apache/examples/panorama/startup/impl/ExecuteStatic.java"
/>
 
 <p>
 ExecuteStatic uses Java reflection to invoke a public static method of a particular class.
@@ -275,7 +275,7 @@
 <section>
   <title>TaskExecutor.java</title>
   
-<javasourcefile file="examples/src/java/com/panorama/startup/impl/TaskExecutor.java" />
+<javasourcefile file="examples/src/java/org/apache/examples/panorama/startup/impl/TaskExecutor.java"
/>
   
 <p>
 This class is where it all comes together; it is the core service implementation for the
@@ -310,7 +310,7 @@
   <title>TestTaskExcecutor.java</title>
 </section>
 
-<javasourcefile file="examples/src/test/com/panorama/startup/impl/TestTaskExecutor.java"
/>
+<javasourcefile file="examples/src/test/org/apache/examples/panorama/startup/impl/TestTaskExecutor.java"
/>
  
 <p>
 In this listing (which is a paired down version of the real class), you can see how 
@@ -329,7 +329,7 @@
 <p>
 That's just <em>unit</em> testing; you always want to supplement that with <em>integration</em>
 testing ... to ensure, at the very least, that your schema is valid, the conversion rules
work, and the contributions
-are correct.  However, as the <link href="clover/com/panorama/startup/impl/pkg-summary.html">code
coverage report</link>
+are correct.  However, as the <link href="clover/org/apache/examples/panorama/startup/impl/pkg-summary.html">code
coverage report</link>
   shows, you can reach very high levels of code coverage (and code <em>confidence</em>)
using unit tests.
 </p>
   

Modified: jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/setters.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/setters.xml?rev=233200&r1=233199&r2=233200&view=diff
==============================================================================
--- jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/setters.xml
(original)
+++ jakarta/hivemind/trunk/examples/src/documentation/content/xdocs/hivemind-examples/setters.xml
Wed Aug 17 10:04:58 2005
@@ -37,11 +37,11 @@
 	</p>
 	<section>
 		<title>settersRegistry.xml</title>
-		<xmlsourcefile file="examples/src/java/org/apache/hivemind/examples/setters/setters.xml"
/>
+		<xmlsourcefile file="examples/src/java/org/apache/examples/setters/setters.xml" />
 	</section>
 	<section>
 		<title>SetterService.java</title>
-		<javasourcefile file="examples/src/java/org/apache/hivemind/examples/setters/SetterService.java"
/>
+		<javasourcefile file="examples/src/java/org/apache/examples/setters/SetterService.java"
/>
 	</section>
 
   </body>



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message