ws-sandesha-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chamik...@apache.org
Subject svn commit: r264753 - in /webservices/sandesha/trunk/src/org/apache/sandesha2/storage: StorageManagerFactory.java beans/SequencePropertyBean.java
Date Tue, 30 Aug 2005 10:23:04 GMT
Author: chamikara
Date: Tue Aug 30 03:22:43 2005
New Revision: 264753

URL: http://svn.apache.org/viewcvs?rev=264753&view=rev
Log:
some changes to storage classes.

Modified:
    webservices/sandesha/trunk/src/org/apache/sandesha2/storage/StorageManagerFactory.java
    webservices/sandesha/trunk/src/org/apache/sandesha2/storage/beans/SequencePropertyBean.java

Modified: webservices/sandesha/trunk/src/org/apache/sandesha2/storage/StorageManagerFactory.java
URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/src/org/apache/sandesha2/storage/StorageManagerFactory.java?rev=264753&r1=264752&r2=264753&view=diff
==============================================================================
--- webservices/sandesha/trunk/src/org/apache/sandesha2/storage/StorageManagerFactory.java
(original)
+++ webservices/sandesha/trunk/src/org/apache/sandesha2/storage/StorageManagerFactory.java
Tue Aug 30 03:22:43 2005
@@ -17,19 +17,20 @@
 
 package org.apache.sandesha2.storage;
 
+import org.apache.sandesha2.Constants;
+
 /**
  * @author
  * 
  */
 public class StorageManagerFactory {
 	
-	public static final int IN_MEMORY_STORAGE_TYPE = 1;
-	public static final int PERSISTANT_STORAGE_TYPE = 2;
+
 	
 	public static StorageManager getStorageManager(int storageType) {
-		if (storageType == IN_MEMORY_STORAGE_TYPE) {
+		if (storageType == Constants.STORAGE_TYPE_IN_MEMORY) {
 			return InMemoryStorageMgr.getInstance();
-		} else if (storageType == PERSISTANT_STORAGE_TYPE) {
+		} else if (storageType == Constants.STORAGE_TYPE_PERSISTANCE) {
 			return PermanentStorageMgr.getInstance();
 		} else {
 			throw new IllegalArgumentException("invalid storage type");

Modified: webservices/sandesha/trunk/src/org/apache/sandesha2/storage/beans/SequencePropertyBean.java
URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/src/org/apache/sandesha2/storage/beans/SequencePropertyBean.java?rev=264753&r1=264752&r2=264753&view=diff
==============================================================================
--- webservices/sandesha/trunk/src/org/apache/sandesha2/storage/beans/SequencePropertyBean.java
(original)
+++ webservices/sandesha/trunk/src/org/apache/sandesha2/storage/beans/SequencePropertyBean.java
Tue Aug 30 03:22:43 2005
@@ -23,43 +23,39 @@
 
 	private String sequenceId;
 	private String name;
-	private String value;
+	private Object value;
 	
+	public SequencePropertyBean (String seqId, String propertyName, Object value) {
+		this.sequenceId = seqId;
+		this.name = propertyName;
+		this.value = value;
+	}
 	
-	/**
-	 * @return Returns the name.
-	 */
+	public SequencePropertyBean () {
+		
+	}
+
 	public String getName() {
 		return name;
 	}
-	/**
-	 * @param name The name to set.
-	 */
+
 	public void setName(String name) {
 		this.name = name;
 	}
-	/**
-	 * @return Returns the sequenceId.
-	 */
+
 	public String getSequenceId() {
 		return sequenceId;
 	}
-	/**
-	 * @param sequenceId The sequenceId to set.
-	 */
+
 	public void setSequenceId(String sequenceId) {
 		this.sequenceId = sequenceId;
 	}
-	/**
-	 * @return Returns the value.
-	 */
-	public String getValue() {
+
+	public Object getValue() {
 		return value;
 	}
-	/**
-	 * @param value The value to set.
-	 */
-	public void setValue(String value) {
+
+	public void setValue(Object value) {
 		this.value = value;
 	}
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org


Mime
View raw message