Author: mes
Date: 2010-07-21 15:32:47 -0700 (Wed, 21 Jul 2010)
New Revision: 20986
Added:
core3/session-impl/trunk/src/main/java/org/cytoscape/session/internal/CySessionManagerImpl.java
Modified:
core3/session-impl/trunk/src/main/resources/META-INF/spring/bundle-context-osgi.xml
core3/session-impl/trunk/src/main/resources/META-INF/spring/bundle-context.xml
Log:
added a simple impl of CySessionManager
Added:
core3/session-impl/trunk/src/main/java/org/cytoscape/session/internal/CySessionManagerImpl.java
===================================================================
---
core3/session-impl/trunk/src/main/java/org/cytoscape/session/internal/CySessionManagerImpl.java
(rev 0)
+++
core3/session-impl/trunk/src/main/java/org/cytoscape/session/internal/CySessionManagerImpl.java
2010-07-21 22:32:47 UTC (rev 20986)
@@ -0,0 +1,72 @@
+
+/*
+ Copyright (c) 2010, The Cytoscape Consortium (www.cytoscape.org)
+
+ The Cytoscape Consortium is:
+ - Institute for Systems Biology
+ - University of California San Diego
+ - Memorial Sloan-Kettering Cancer Center
+ - Institut Pasteur
+ - Agilent Technologies
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation; either version 2.1 of the License, or
+ any later version.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
+ documentation provided hereunder is on an "as is" basis, and the
+ Institute for Systems Biology and the Whitehead Institute
+ have no obligations to provide maintenance, support,
+ updates, enhancements or modifications. In no event shall the
+ Institute for Systems Biology and the Whitehead Institute
+ be liable to any party for direct, indirect, special,
+ incidental or consequential damages, including lost profits, arising
+ out of the use of this software and its documentation, even if the
+ Institute for Systems Biology and the Whitehead Institute
+ have been advised of the possibility of such damage. See
+ the GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+*/
+package org.cytoscape.session.internal;
+
+import org.cytoscape.session.CySessionManager;
+
+// TODO this is still pretty much just a placeholder class
+public class CySessionManagerImpl implements CySessionManager {
+
+ private String sessionName;
+ private int sessionState;
+
+ CySessionManagerImpl() {
+ sessionName = "Session 1";
+ sessionState = 0;
+ }
+
+ public String getCurrentSessionFileName() {
+ return sessionName;
+ }
+
+ public void setCurrentSessionFileName(String newName) {
+ if ( newName != null && newName.length() > 0 ) {
+ sessionName = newName;
+ }
+ }
+
+ public void setSessionState(int state) {
+ sessionState = state;
+ }
+
+ public int getSessionstate() {
+ return sessionState;
+ }
+
+ public void createNewSession() {}
+
+}
+
Modified:
core3/session-impl/trunk/src/main/resources/META-INF/spring/bundle-context-osgi.xml
===================================================================
---
core3/session-impl/trunk/src/main/resources/META-INF/spring/bundle-context-osgi.xml
2010-07-21 22:03:16 UTC (rev 20985)
+++
core3/session-impl/trunk/src/main/resources/META-INF/spring/bundle-context-osgi.xml
2010-07-21 22:32:47 UTC (rev 20986)
@@ -14,6 +14,10 @@
interface="org.cytoscape.session.CyNetworkNaming">
</osgi:service>
+ <osgi:service id="cySessionManagerService" ref="cySessionManager"
+ interface="org.cytoscape.session.CySessionManager">
+ </osgi:service>
+
<!-- Import Services -->
<osgi:reference id="cyEventHelperServiceRef"
interface="org.cytoscape.event.CyEventHelper" />
Modified:
core3/session-impl/trunk/src/main/resources/META-INF/spring/bundle-context.xml
===================================================================
---
core3/session-impl/trunk/src/main/resources/META-INF/spring/bundle-context.xml
2010-07-21 22:03:16 UTC (rev 20985)
+++
core3/session-impl/trunk/src/main/resources/META-INF/spring/bundle-context.xml
2010-07-21 22:32:47 UTC (rev 20986)
@@ -19,9 +19,12 @@
<bean id="cyNetworkManager"
class="org.cytoscape.session.internal.NetworkManager">
<constructor-arg ref="cyEventHelperServiceRef" />
</bean>
+
<bean id="cyNetworkNaming"
class="org.cytoscape.session.internal.CyNetworkNamingImpl">
<constructor-arg ref="cyNetworkManager" />
</bean>
+ <bean id="cySessionManager"
class="org.cytoscape.session.internal.CySessionManagerImpl">
+ </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.