You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemind.apache.org by hl...@apache.org on 2005/08/17 19:16:51 UTC

svn commit: r233209 - in /jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup: Executable.java PanoramaMain.java

Author: hlship
Date: Wed Aug 17 10:16:47 2005
New Revision: 233209

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

Added:
    jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/Executable.java
    jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/PanoramaMain.java

Added: jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/Executable.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/Executable.java?rev=233209&view=auto
==============================================================================
--- jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/Executable.java (added)
+++ jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/Executable.java Wed Aug 17 10:16:47 2005
@@ -0,0 +1,26 @@
+// 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.
+
+package org.apache.examples.panorama.startup;
+
+/**
+ * Much like {@link java.lang.Runnable}, but allows the caller
+ * to handle any exceptions thrown.
+ *
+ * @author Howard Lewis Ship
+ */
+public interface Executable
+{
+    public void execute() throws Exception;
+}

Added: jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/PanoramaMain.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/PanoramaMain.java?rev=233209&view=auto
==============================================================================
--- jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/PanoramaMain.java (added)
+++ jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/PanoramaMain.java Wed Aug 17 10:16:47 2005
@@ -0,0 +1,35 @@
+// 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.
+
+package org.apache.examples.panorama.startup;
+
+import org.apache.examples.ExampleUtils;
+import org.apache.hivemind.Registry;
+
+/**
+ * Builds the Registry for Panorama, then exits.  Demonstrates how the
+ * MDDs are parsed and the startup logic executed.
+ *
+ * @author Howard Lewis Ship
+ */
+public class PanoramaMain
+{
+
+    public static void main(String[] args)
+    {
+        Registry registry = ExampleUtils.buildRegistry("panorama.xml");
+        
+        registry.shutdown();
+    }
+}



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