Author: kono
Date: 2009-06-10 19:08:52 -0700 (Wed, 10 Jun 2009)
New Revision: 16913

Added:
   csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/osgi.bnd
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/pom.xml
   csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/ExampleService.java
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/ExampleActivator.java
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/ExampleServiceImpl.java
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/resources/
   
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/resources/readme.txt
Log:
Initial checkin of the processing-renderer project.

Added: 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/osgi.bnd
===================================================================
--- 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/osgi.bnd
                           (rev 0)
+++ 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/osgi.bnd
   2009-06-11 02:08:52 UTC (rev 16913)
@@ -0,0 +1,5 @@
+#-----------------------------------------------------------------
+# Use this file to add customized Bnd instructions for the bundle
+#-----------------------------------------------------------------
+
+Bundle-Activator: ${bundle.namespace}.internal.ExampleActivator

Added: 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/pom.xml
===================================================================
--- 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/pom.xml
                            (rev 0)
+++ 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/pom.xml
    2009-06-11 02:08:52 UTC (rev 16913)
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://maven.apache.org/POM/4.0.0"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+
+  <parent>
+    <relativePath>../poms/compiled/</relativePath>
+    <groupId>org.cytoscape.processing-renderer.build</groupId>
+    <artifactId>compiled-bundle-settings</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <properties>
+    
<bundle.symbolicName>org.cytoscape.processing-renderer.processing-rendering-engine</bundle.symbolicName>
+    
<bundle.namespace>org.cytoscape.view.presentation.processing</bundle.namespace>
+  </properties>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.cytoscape.processing-renderer</groupId>
+  <artifactId>processing-rendering-engine</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>${bundle.symbolicName} [${bundle.namespace}]</name>
+
+  <packaging>bundle</packaging>
+
+  <dependencies>
+    <!--
+     | uncomment to add all imported (non-local) bundles to your compilation 
classpath
+    <dependency>
+      <type>pom</type>
+      <groupId>${parent.groupId}</groupId>
+      <artifactId>provision</artifactId>
+      <optional>true</optional>
+    </dependency>
+    -->
+    <dependency>
+      <groupId>org.osgi</groupId>
+      <artifactId>osgi_R4_core</artifactId>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.osgi</groupId>
+      <artifactId>osgi_R4_compendium</artifactId>
+      <optional>true</optional>
+    </dependency>
+  </dependencies>
+
+</project>
\ No newline at end of file

Added: 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/ExampleService.java
===================================================================
--- 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/ExampleService.java
                               (rev 0)
+++ 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/ExampleService.java
       2009-06-11 02:08:52 UTC (rev 16913)
@@ -0,0 +1,12 @@
+package org.cytoscape.view.presentation.processing;
+
+/**
+ * Public API representing an example OSGi service
+ */
+public interface ExampleService
+{
+    // public methods go here...
+
+    String scramble( String text );
+}
+

Added: 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/ExampleActivator.java
===================================================================
--- 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/ExampleActivator.java
                            (rev 0)
+++ 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/ExampleActivator.java
    2009-06-11 02:08:52 UTC (rev 16913)
@@ -0,0 +1,45 @@
+package org.cytoscape.view.presentation.processing.internal;
+
+import java.util.Dictionary;
+import java.util.Properties;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+import org.cytoscape.view.presentation.processing.ExampleService;
+
+/**
+ * Extension of the default OSGi bundle activator
+ */
+public final class ExampleActivator
+    implements BundleActivator
+{
+    /**
+     * Called whenever the OSGi framework starts our bundle
+     */
+    public void start( BundleContext bc )
+        throws Exception
+    {
+        System.out.println( "STARTING 
org.cytoscape.view.presentation.processing" );
+
+        Dictionary props = new Properties();
+        // add specific service properties here...
+
+        System.out.println( "REGISTER 
org.cytoscape.view.presentation.processing.ExampleService" );
+
+        // Register our example service implementation in the OSGi service 
registry
+        bc.registerService( ExampleService.class.getName(), new 
ExampleServiceImpl(), props );
+    }
+
+    /**
+     * Called whenever the OSGi framework stops our bundle
+     */
+    public void stop( BundleContext bc )
+        throws Exception
+    {
+        System.out.println( "STOPPING 
org.cytoscape.view.presentation.processing" );
+
+        // no need to unregister our service - the OSGi framework handles it 
for us
+    }
+}
+

Added: 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/ExampleServiceImpl.java
===================================================================
--- 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/ExampleServiceImpl.java
                          (rev 0)
+++ 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/java/org/cytoscape/view/presentation/processing/internal/ExampleServiceImpl.java
  2009-06-11 02:08:52 UTC (rev 16913)
@@ -0,0 +1,38 @@
+package org.cytoscape.view.presentation.processing.internal;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.cytoscape.view.presentation.processing.ExampleService;
+
+/**
+ * Internal implementation of our example OSGi service
+ */
+public final class ExampleServiceImpl
+    implements ExampleService
+{
+    // implementation methods go here...
+
+    public String scramble( String text )
+    {
+        List charList = new ArrayList();
+
+        char[] textChars = text.toCharArray();
+        for( int i = 0; i < textChars.length; i++ )
+        {
+            charList.add( new Character( textChars[i] ) );
+        }
+
+        Collections.shuffle( charList );
+
+        char[] mixedChars = new char[text.length()];
+        for( int i = 0; i < mixedChars.length; i++ )
+        {
+            mixedChars[i] = ( (Character) charList.get( i ) ).charValue();
+        }
+
+        return new String( mixedChars );
+    }
+}
+

Added: 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/resources/readme.txt
===================================================================
--- 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/resources/readme.txt
                              (rev 0)
+++ 
csplugins/trunk/soc/kozo/processing-renderer/processing-rendering-engine/src/main/resources/readme.txt
      2009-06-11 02:08:52 UTC (rev 16913)
@@ -0,0 +1 @@
+Bundle resources go here


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to