diff options
author | eranda <eranda@13f79535-47bb-0310-9956-ffa450edef68> | 2011-07-09 09:02:32 +0000 |
---|---|---|
committer | eranda <eranda@13f79535-47bb-0310-9956-ffa450edef68> | 2011-07-09 09:02:32 +0000 |
commit | 611747a6fea6b03c16d955af639d101319cf0b7f (patch) | |
tree | 314c6e820ba60d23fe00e9e44fad7cd5bf7c3fa9 /collaboration/GSoC-2011-Eranda/couchdb/src/main/java/org/apache/tuscany/nosqldatastore/SessionFactory.java | |
parent | 800d0da7d863cc75004b9e034646d457156edf97 (diff) |
1. Remove static variable in SessionFactory
2. Set spaces to 4
3. Exception handling
4. Rename *Test to *TestCase
5. Convert test cases in to JUnit
6. Rename addValue() method in Group.java to addEntry()
7. Updated the addEntry method signature to accept String type only
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1144620 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'collaboration/GSoC-2011-Eranda/couchdb/src/main/java/org/apache/tuscany/nosqldatastore/SessionFactory.java')
-rw-r--r-- | collaboration/GSoC-2011-Eranda/couchdb/src/main/java/org/apache/tuscany/nosqldatastore/SessionFactory.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/collaboration/GSoC-2011-Eranda/couchdb/src/main/java/org/apache/tuscany/nosqldatastore/SessionFactory.java b/collaboration/GSoC-2011-Eranda/couchdb/src/main/java/org/apache/tuscany/nosqldatastore/SessionFactory.java index 2438adf228..534a6905c4 100644 --- a/collaboration/GSoC-2011-Eranda/couchdb/src/main/java/org/apache/tuscany/nosqldatastore/SessionFactory.java +++ b/collaboration/GSoC-2011-Eranda/couchdb/src/main/java/org/apache/tuscany/nosqldatastore/SessionFactory.java @@ -22,15 +22,15 @@ package org.apache.tuscany.nosqldatastore; import org.apache.tuscany.nosqldatastore.couchdb.CouchDBSession; public class SessionFactory { - - private static org.apache.tuscany.nosqldatastore.Session session; - - private SessionFactory(){ - } - - public static Session getCouchDBSession(){ - session = new CouchDBSession(); - return session; - } - + + private org.apache.tuscany.nosqldatastore.Session session; + + public SessionFactory(){ + } + + public Session getCouchDBSession(){ + session = new CouchDBSession("couchdb"); + return session; + } + } |