Author: mes
Date: 2011-09-13 09:29:29 -0700 (Tue, 13 Sep 2011)
New Revision: 26775
Added:
core3/impl/branches/no-spring/event-impl/impl/src/main/java/org/cytoscape/event/internal/CyActivator.java
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml-legacy
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context.xml-legacy
Removed:
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context.xml
Modified:
core3/impl/branches/no-spring/event-impl/impl/osgi.bnd
Log:
removed use of spring
Modified: core3/impl/branches/no-spring/event-impl/impl/osgi.bnd
===================================================================
--- core3/impl/branches/no-spring/event-impl/impl/osgi.bnd 2011-09-13
16:26:10 UTC (rev 26774)
+++ core3/impl/branches/no-spring/event-impl/impl/osgi.bnd 2011-09-13
16:29:29 UTC (rev 26775)
@@ -2,6 +2,6 @@
# Use this file to add customized Bnd instructions for the bundle
#-----------------------------------------------------------------
-Spring-Context: META-INF/spring/*.xml
+Bundle-Activator: ${bundle.namespace}.internal.CyActivator
Private-Package: ${bundle.namespace}.internal, ${bundle.namespace}.internal.*
Added:
core3/impl/branches/no-spring/event-impl/impl/src/main/java/org/cytoscape/event/internal/CyActivator.java
===================================================================
---
core3/impl/branches/no-spring/event-impl/impl/src/main/java/org/cytoscape/event/internal/CyActivator.java
(rev 0)
+++
core3/impl/branches/no-spring/event-impl/impl/src/main/java/org/cytoscape/event/internal/CyActivator.java
2011-09-13 16:29:29 UTC (rev 26775)
@@ -0,0 +1,27 @@
+
+
+
+
+package org.cytoscape.event.internal;
+
+
+import org.cytoscape.event.internal.CyEventHelperImpl;
+import org.cytoscape.event.internal.CyListenerAdapter;
+import org.cytoscape.event.CyEventHelper;
+import org.osgi.framework.BundleContext;
+import org.cytoscape.service.util.AbstractCyActivator;
+import java.util.Properties;
+
+public class CyActivator extends AbstractCyActivator {
+ public CyActivator() {
+ super();
+ }
+
+ public void start(BundleContext bc) {
+ CyListenerAdapter cyListenerAdapter = new CyListenerAdapter(bc);
+ CyEventHelperImpl cyEventHelper = new
CyEventHelperImpl(cyListenerAdapter);
+
+ registerService(bc,cyEventHelper,CyEventHelper.class, new
Properties());
+ }
+}
+
Deleted:
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml
===================================================================
---
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml
2011-09-13 16:26:10 UTC (rev 26774)
+++
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml
2011-09-13 16:29:29 UTC (rev 26775)
@@ -1,13 +0,0 @@
-<?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-3.0.xsd
- http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi-1.0.xsd"
- default-lazy-init="false">
-
- <!-- Individual Service -->
- <osgi:service id="cyEventHelperService"
- ref="cyEventHelper"
interface="org.cytoscape.event.CyEventHelper">
- </osgi:service>
-</beans>
Copied:
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml-legacy
(from rev 26762,
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml)
===================================================================
---
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml-legacy
(rev 0)
+++
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context-osgi.xml-legacy
2011-09-13 16:29:29 UTC (rev 26775)
@@ -0,0 +1,13 @@
+<?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-3.0.xsd
+ http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi-1.0.xsd"
+ default-lazy-init="false">
+
+ <!-- Individual Service -->
+ <osgi:service id="cyEventHelperService"
+ ref="cyEventHelper"
interface="org.cytoscape.event.CyEventHelper">
+ </osgi:service>
+</beans>
Deleted:
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context.xml
===================================================================
---
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context.xml
2011-09-13 16:26:10 UTC (rev 26774)
+++
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context.xml
2011-09-13 16:29:29 UTC (rev 26775)
@@ -1,25 +0,0 @@
-<?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-3.0.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-3.0.xsd">
-
- <!-- regular spring configuration file defining the beans for this
- bundle. We've kept the osgi definitions in a separate
- configuration file so that this file can easily be used
- for integration testing outside of an OSGi environment -->
-
- <context:annotation-config/>
-
- <bean id="cyListenerAdapter"
class="org.cytoscape.event.internal.CyListenerAdapter">
- <constructor-arg ref="bundleContext" />
- </bean>
-
- <bean id="cyEventHelper"
class="org.cytoscape.event.internal.CyEventHelperImpl">
- <constructor-arg ref="cyListenerAdapter" />
- </bean>
-</beans>
Copied:
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context.xml-legacy
(from rev 26762,
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context.xml)
===================================================================
---
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context.xml-legacy
(rev 0)
+++
core3/impl/branches/no-spring/event-impl/impl/src/main/resources/META-INF/spring/bundle-context.xml-legacy
2011-09-13 16:29:29 UTC (rev 26775)
@@ -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-3.0.xsd
+ http://www.springframework.org/schema/context
+ http://www.springframework.org/schema/context/spring-context-3.0.xsd">
+
+ <!-- regular spring configuration file defining the beans for this
+ bundle. We've kept the osgi definitions in a separate
+ configuration file so that this file can easily be used
+ for integration testing outside of an OSGi environment -->
+
+ <context:annotation-config/>
+
+ <bean id="cyListenerAdapter"
class="org.cytoscape.event.internal.CyListenerAdapter">
+ <constructor-arg ref="bundleContext" />
+ </bean>
+
+ <bean id="cyEventHelper"
class="org.cytoscape.event.internal.CyEventHelperImpl">
+ <constructor-arg ref="cyListenerAdapter" />
+ </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.