Author: mes
Date: 2010-07-21 12:25:38 -0700 (Wed, 21 Jul 2010)
New Revision: 20980
Added:
core3/plugin-api/trunk/
core3/plugin-api/trunk/osgi.bnd
core3/plugin-api/trunk/pom.xml
core3/plugin-api/trunk/src/
core3/plugin-api/trunk/src/main/
core3/plugin-api/trunk/src/main/java/
core3/plugin-api/trunk/src/main/java/org/
core3/plugin-api/trunk/src/main/java/org/cytoscape/
core3/plugin-api/trunk/src/main/java/org/cytoscape/plugin/
core3/plugin-api/trunk/src/main/java/org/cytoscape/plugin/CyPlugin.java
core3/plugin-api/trunk/src/main/java/org/cytoscape/plugin/CyPluginAdapter.java
Log:
initial import
Added: core3/plugin-api/trunk/osgi.bnd
===================================================================
--- core3/plugin-api/trunk/osgi.bnd (rev 0)
+++ core3/plugin-api/trunk/osgi.bnd 2010-07-21 19:25:38 UTC (rev 20980)
@@ -0,0 +1,6 @@
+#-----------------------------------------------------------------
+# Use this file to add customized Bnd instructions for the bundle
+#-----------------------------------------------------------------
+
+Export-Package: ${bundle.namespace}.*
+
Added: core3/plugin-api/trunk/pom.xml
===================================================================
--- core3/plugin-api/trunk/pom.xml (rev 0)
+++ core3/plugin-api/trunk/pom.xml 2010-07-21 19:25:38 UTC (rev 20980)
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project 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"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+ <parent>
+ <artifactId>parent</artifactId>
+ <groupId>org.cytoscape</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <properties>
+ <bundle.symbolicName>org.cytoscape.plugin-api</bundle.symbolicName>
+ <bundle.namespace>org.cytoscape.plugin</bundle.namespace>
+ </properties>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>plugin-api</artifactId>
+ <version>1.0-SNAPSHOT</version>
+
+ <name>${bundle.symbolicName}</name>
+
+ <packaging>bundle</packaging>
+
+ <repositories>
+ <!-- bootstrap for cytoscape dependencies, namely the parent POM
snapshots -->
+ <repository>
+ <id>cytoscape_snapshots</id>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <name>Cytoscape Snapshots</name>
+
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/snapshots/</url>
+ </repository>
+ <!-- bootstrap for cytoscape dependencies, namely the parent POM
releases -->
+ <repository>
+ <id>cytoscape_releases</id>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <name>Cytoscape Releases</name>
+
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/releases/</url>
+ </repository>
+ </repositories>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ </resource>
+ <resource>
+ <directory>.</directory>
+ <includes>
+ <include>plugin.xml</include>
+ <include>plugin.properties</include>
+ <include>icons/**</include>
+ </includes>
+ </resource>
+ </resources>
+
+ <plugins>
+
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-5</version>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.ops4j</groupId>
+ <artifactId>maven-pax-plugin</artifactId>
+ <version>1.4</version>
+ <extensions>true</extensions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.4.3</version>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
+ <Bundle-Version>${pom.version}</Bundle-Version>
+ <_include>-osgi.bnd</_include>
+ </instructions>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>model-api</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>viewmodel-api</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>work-api</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+</project>
Added: core3/plugin-api/trunk/src/main/java/org/cytoscape/plugin/CyPlugin.java
===================================================================
--- core3/plugin-api/trunk/src/main/java/org/cytoscape/plugin/CyPlugin.java
(rev 0)
+++ core3/plugin-api/trunk/src/main/java/org/cytoscape/plugin/CyPlugin.java
2010-07-21 19:25:38 UTC (rev 20980)
@@ -0,0 +1,16 @@
+package org.cytoscape.plugin;
+
+
+public abstract class CyPlugin {
+
+ protected CyPluginAdapter adapter;
+
+ // so no one calls this constructor
+ private CyPlugin() {
+ throw new NullPointerException("no adapter provided!");
+ }
+
+ public CyPlugin(final CyPluginAdapter adapter) {
+ this.adapter = adapter;
+ }
+}
Added:
core3/plugin-api/trunk/src/main/java/org/cytoscape/plugin/CyPluginAdapter.java
===================================================================
---
core3/plugin-api/trunk/src/main/java/org/cytoscape/plugin/CyPluginAdapter.java
(rev 0)
+++
core3/plugin-api/trunk/src/main/java/org/cytoscape/plugin/CyPluginAdapter.java
2010-07-21 19:25:38 UTC (rev 20980)
@@ -0,0 +1,37 @@
+package org.cytoscape.plugin;
+
+import org.cytoscape.model.CyNetworkFactory;
+import org.cytoscape.model.CyDataTableFactory;
+import org.cytoscape.view.model.CyNetworkViewFactory;
+import org.cytoscape.work.TaskManager;
+
+
+/**
+ * A Java-only api providing access to cytoscape functionality.
+ */
+public interface CyPluginAdapter {
+
+ /**
+ * Returns an instance of CyNetworkFactory.
+ * @return an instance of CyNetworkFactory.
+ */
+ CyNetworkFactory getCyNetworkFactory();
+
+ /**
+ * Returns an instance of CyNetworkFactory.
+ * @return an instance of CyNetworkFactory.
+ */
+ CyDataTableFactory getCyDataTableFactory();
+
+ /**
+ * Returns an instance of CyNetworkFactory.
+ * @return an instance of CyNetworkFactory.
+ */
+ CyNetworkViewFactory getCyNetworkViewFactory();
+
+ /**
+ * Returns an instance of CyNetworkFactory.
+ * @return an instance of CyNetworkFactory.
+ */
+ TaskManager getTaskManager();
+}
--
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.