Author: pwang
Date: 2010-12-02 12:45:27 -0800 (Thu, 02 Dec 2010)
New Revision: 23074
Added:
csplugins/trunk/ucsd/pwang/sandbox/src/main/resources/
csplugins/trunk/ucsd/pwang/sandbox/src/main/resources/META-INF/
csplugins/trunk/ucsd/pwang/sandbox/src/main/resources/META-INF/spring/
csplugins/trunk/ucsd/pwang/sandbox/src/main/resources/META-INF/spring/bundle-context-osgi.xml
csplugins/trunk/ucsd/pwang/sandbox/src/main/resources/META-INF/spring/bundle-context.xml
Log:
Original creation
Added:
csplugins/trunk/ucsd/pwang/sandbox/src/main/resources/META-INF/spring/bundle-context-osgi.xml
===================================================================
---
csplugins/trunk/ucsd/pwang/sandbox/src/main/resources/META-INF/spring/bundle-context-osgi.xml
(rev 0)
+++
csplugins/trunk/ucsd/pwang/sandbox/src/main/resources/META-INF/spring/bundle-context-osgi.xml
2010-12-02 20:45:27 UTC (rev 23074)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:osgi="http://www.springframework.org/schema/osgi"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/osgi
+ http://www.springframework.org/schema/osgi/spring-osgi-1.0.xsd"
+ default-lazy-init="false">
+
+
+ <osgi:reference id="cytoscapeDesktopService"
+ interface="org.cytoscape.application.swing.CySwingApplication"
/>
+
+ <osgi:reference id="cyApplicationManagerRef"
+ interface="org.cytoscape.session.CyApplicationManager">
+ </osgi:reference>
+
+ <osgi:reference id="cyNetworkManagerServiceRef"
+ interface="org.cytoscape.model.CyNetworkManager" />
+
+ <osgi:reference id="cyTableManagerServiceRef"
interface="org.cytoscape.model.CyTableManager" />
+
+ <osgi:reference id="guiTaskManagerServiceRef"
interface="org.cytoscape.work.swing.GUITaskManager">
+ </osgi:reference>
+
+ <!--
+ This code registers the bean we just created "sampleTaskFactory" as an
+ OSGi service of a particular type
(org.cytoscape.task.NetworkTaskFactory).
+ By registering your bean as a service, it will become available to all
+ users interested in services of that particular type.
+ The service properties are metadata that can be used elsewhere in the
+ system to identify and otherwise control how the service gets use
+ (like determining which menu to put the service in).
+ -->
+ <osgi:service id="sandboxTaskFactoryService" ref="sandboxTaskFactory"
+ interface="org.cytoscape.work.TaskFactory">
+ <osgi:service-properties>
+ <entry key="title" value="Sandbox..." />
+ <entry key="preferredMenu" value="Plugins" />
+ </osgi:service-properties>
+ </osgi:service>
+
+</beans>
Added:
csplugins/trunk/ucsd/pwang/sandbox/src/main/resources/META-INF/spring/bundle-context.xml
===================================================================
---
csplugins/trunk/ucsd/pwang/sandbox/src/main/resources/META-INF/spring/bundle-context.xml
(rev 0)
+++
csplugins/trunk/ucsd/pwang/sandbox/src/main/resources/META-INF/spring/bundle-context.xml
2010-12-02 20:45:27 UTC (rev 23074)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:context="http://www.springframework.org/schema/context"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/context
+
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
+
+ <!--
+ This simply constructs an object (or bean) called "sampleTaskFactory"
+ of type org.example.internal.SampleTaskFactory. The name
"sampleTaskFactory"
+ is used to identify this particular object in this and the
+ bundle-context-osgi.xml file.
+ -->
+ <bean id="sandboxTaskFactory"
+ class="org.cytoscape.sandbox.internal.SandboxTaskFactory">
+ <constructor-arg ref="cytoscapeDesktopService" />
+ <constructor-arg ref="cyApplicationManagerRef" />
+ <constructor-arg ref="cyNetworkManagerServiceRef" />
+ <constructor-arg ref="cyTableManagerServiceRef" />
+ <constructor-arg ref="guiTaskManagerServiceRef" />
+ </bean>
+</beans>
--
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.