commonjava-developer Mailing List for CommonJava Open Component Project (Page 3)
Brought to you by:
johnqueso
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(10) |
Feb
(114) |
Mar
(169) |
Apr
(25) |
May
|
Jun
(5) |
Jul
(17) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: John C. <joh...@co...> - 2004-03-27 04:35:39
|
Update of /cvsroot/commonjava/other-projects/marmalade In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7841 Modified Files: .classpath Log Message: added test for ScopedMap (it works!) and added OGNL implementation of ExpressionEvaluator (not tested yet). Index: .classpath =================================================================== RCS file: /cvsroot/commonjava/other-projects/marmalade/.classpath,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- .classpath 26 Mar 2004 05:13:35 -0000 1.1 +++ .classpath 27 Mar 2004 04:24:32 -0000 1.2 @@ -9,5 +9,6 @@ path="MAVEN_REPO/tagalog/jars/tagalog-SNAPSHOT.jar" sourcepath="WORKSPACE/tagalog/src/java"/> <classpathentry kind="var" path="MAVEN_REPO/ognl/jars/ognl-2.5.1.jar"/> <classpathentry kind="var" path="MAVEN_REPO/commonjava/jars/commonjava-reflection-2.0-1.jar"/> + <classpathentry kind="var" path="MAVEN_REPO/junit/jars/junit-3.8.1.jar"/> <classpathentry kind="output" path="target/classes"/> </classpath> |
From: John C. <joh...@co...> - 2004-03-27 04:35:39
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/main/java/org/marmalade/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7841/src/main/java/org/marmalade/util Modified Files: ScopedMap.java Log Message: added test for ScopedMap (it works!) and added OGNL implementation of ExpressionEvaluator (not tested yet). Index: ScopedMap.java =================================================================== RCS file: /cvsroot/commonjava/other-projects/marmalade/src/main/java/org/marmalade/util/ScopedMap.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ScopedMap.java 26 Mar 2004 05:13:35 -0000 1.1 +++ ScopedMap.java 27 Mar 2004 04:24:33 -0000 1.2 @@ -4,6 +4,7 @@ import java.util.Collection; import java.util.Collections; import java.util.HashMap; +import java.util.Iterator; import java.util.Map; import java.util.Set; @@ -16,7 +17,6 @@ private Map superMap; private Map thisMap; - private int superMapSize; private ScopedMapEntriesSet keySet; private ScopedMapEntriesSet valueSet; private ScopedMapEntriesSet entrySet; @@ -32,10 +32,9 @@ private void init(Map superMap){ Map m = superMap; if(m == null){m = Collections.EMPTY_MAP;} - this.superMap = Collections.unmodifiableMap(m); + this.superMap = new HashMap(m); - this.superMapSize = superMap.size(); - this.thisMap = new HashMap(superMap); + this.thisMap = new HashMap(); this.entrySet = new ScopedMapEntriesSet(superMap, thisMap, null); this.keySet = new ScopedMapEntriesSet(superMap, thisMap, Boolean.TRUE); @@ -49,7 +48,7 @@ } public int size() { - return superMapSize + thisMap.size(); + return superMap.size() + thisMap.size(); } public void clear() { @@ -58,15 +57,15 @@ } public boolean isEmpty() { - return superMapSize < 1 || thisMap.isEmpty(); + return superMap.isEmpty() && thisMap.isEmpty(); } public boolean containsKey(Object key) { - return thisMap.containsKey(key) || (superMap != null && superMap.containsKey(key)); + return thisMap.containsKey(key) || superMap.containsKey(key); } public boolean containsValue(Object value) { - return thisMap.containsValue(value) || (superMap != null && superMap.containsValue(value)); + return thisMap.containsValue(value) || superMap.containsValue(value); } public Collection values() { @@ -74,8 +73,16 @@ } public void putAll(Map t) { - thisMap.putAll(t); - update(); + boolean changed = false; + for (Iterator it = t.keySet().iterator(); it.hasNext();) { + Object key = it.next(); + if(!superMap.containsKey(key)){ + thisMap.put(key, t.get(key)); + changed = true; + } + } + + if(changed){update();} } public Set entrySet() { @@ -89,7 +96,7 @@ public Object get(Object key) { Object result = thisMap.get(key); if(result == null){ - superMap.get(key); + result = superMap.get(key); } return result; @@ -104,8 +111,11 @@ } public Object put(Object key, Object value) { - Object result = thisMap.put(key, value); - update(); + Object result = null; + if(!superMap.containsKey(key)){ + result = thisMap.put(key, value); + update(); + } return result; } |
From: John C. <joh...@co...> - 2004-03-27 04:35:39
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/main/java/org/marmalade/el In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7841/src/main/java/org/marmalade/el Modified Files: ExpressionEvaluationException.java Log Message: added test for ScopedMap (it works!) and added OGNL implementation of ExpressionEvaluator (not tested yet). Index: ExpressionEvaluationException.java =================================================================== RCS file: /cvsroot/commonjava/other-projects/marmalade/src/main/java/org/marmalade/el/ExpressionEvaluationException.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ExpressionEvaluationException.java 26 Mar 2004 05:13:35 -0000 1.1 +++ ExpressionEvaluationException.java 27 Mar 2004 04:24:33 -0000 1.2 @@ -17,11 +17,11 @@ } /** Construct a new exception to convey failure in evaluating an expression. - * @param message The message giving detailed info about this exception + * @param expression The expression that could not be evaluated. * @param cause The root cause of this exception */ - public ExpressionEvaluationException(String message, Throwable cause) { - super(message, cause); + public ExpressionEvaluationException(String expression, Throwable cause) { + super("Error evaluating expression: " + expression, cause); } } |
From: John C. <joh...@co...> - 2004-03-27 04:35:23
|
Update of /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src/main/java/org In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/subprojects/ognl-el/src/main/java/org Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src/main/java/org added to the repository |
From: John C. <joh...@co...> - 2004-03-27 04:35:23
|
Update of /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src/main/java/org/marmalade/el In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/subprojects/ognl-el/src/main/java/org/marmalade/el Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src/main/java/org/marmalade/el added to the repository |
From: John C. <joh...@co...> - 2004-03-27 04:35:23
|
Update of /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src/main/java/org/marmalade In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/subprojects/ognl-el/src/main/java/org/marmalade Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src/main/java/org/marmalade added to the repository |
From: John C. <joh...@co...> - 2004-03-27 04:35:23
|
Update of /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src/main/java/org/marmalade/el/ognl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/subprojects/ognl-el/src/main/java/org/marmalade/el/ognl Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src/main/java/org/marmalade/el/ognl added to the repository |
From: John C. <joh...@co...> - 2004-03-27 04:35:23
|
Update of /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/subprojects/ognl-el/src Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src added to the repository |
From: John C. <joh...@co...> - 2004-03-27 04:35:23
|
Update of /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src/main/java In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/subprojects/ognl-el/src/main/java Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src/main/java added to the repository |
From: John C. <joh...@co...> - 2004-03-27 04:35:23
|
Update of /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src/main In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/subprojects/ognl-el/src/main Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el/src/main added to the repository |
From: John C. <joh...@co...> - 2004-03-27 04:35:23
|
Update of /cvsroot/commonjava/other-projects/marmalade/subprojects In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/subprojects Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/subprojects added to the repository |
From: John C. <joh...@co...> - 2004-03-27 04:35:22
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/test/java/org/marmalade In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/src/test/java/org/marmalade Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/src/test/java/org/marmalade added to the repository |
From: John C. <joh...@co...> - 2004-03-27 04:35:22
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/test/java/org/marmalade/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/src/test/java/org/marmalade/util Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/src/test/java/org/marmalade/util added to the repository |
From: John C. <joh...@co...> - 2004-03-27 04:35:22
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/test/java/org In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/src/test/java/org Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/src/test/java/org added to the repository |
From: John C. <joh...@co...> - 2004-03-27 04:35:21
|
Update of /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/subprojects/ognl-el Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/subprojects/ognl-el added to the repository |
From: John C. <joh...@co...> - 2004-03-27 04:35:19
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/test/java In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/src/test/java Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/src/test/java added to the repository |
From: John C. <joh...@co...> - 2004-03-27 04:35:19
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706/src/test Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/src/test added to the repository |
From: John C. <joh...@co...> - 2004-03-26 05:24:30
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/main/java/org/marmalade/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30096/src/main/java/org/marmalade/util Added Files: ScopedMapEntriesIterator.java ScopedMap.java ScopedMapEntry.java ScopedMapEntriesSet.java Log Message: initial checkin. --- NEW FILE: ScopedMapEntriesSet.java --- /* Created on Mar 25, 2004 */ package org.marmalade.util; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; /** * @author jdcasey */ public class ScopedMapEntriesSet implements Set { private Map superMap; private Map thisMap; private Boolean extractKey; private List entries = new ArrayList(); public ScopedMapEntriesSet(Map superMap, Map thisMap, Boolean extractKey) { this.superMap = superMap; this.thisMap = thisMap; this.extractKey = extractKey; update(); } public Object extract(ScopedMapEntry entry){ if(extractKey == null){ return entry; } else if(Boolean.TRUE == extractKey){ return entry.getKey(); } else{ return entry.getValue(); } } public int size() { return entries.size(); } public void clear() { thisMap.clear(); for (Iterator it = entries.iterator(); it.hasNext();) { ScopedMapEntry entry = (ScopedMapEntry)it.next(); if(entry.isMutable()){ it.remove(); } } } public boolean isEmpty() { return thisMap.isEmpty() && superMap.isEmpty(); } public Object[] toArray() { Object[] objects = new Object[entries.size()]; for (int i = 0; i < objects.length; i++) { objects[i] = extract((ScopedMapEntry)entries.get(i)); } return objects; } public boolean add(Object o) { throw new UnsupportedOperationException("Add operation is not supported."); } public boolean contains(Object o) { for (Iterator it = entries.iterator(); it.hasNext();) { if(extract((ScopedMapEntry)it.next()).equals(o)){ return true; } } return false; } public boolean remove(Object o) { for (Iterator it = entries.iterator(); it.hasNext();) { ScopedMapEntry entry = (ScopedMapEntry)it.next(); if(extract(entry).equals(o)){ if(entry.isMutable()){ it.remove(); thisMap.remove(entry.getKey()); return true; } else{ return false; } } } return false; } public boolean addAll(Collection c) { throw new UnsupportedOperationException("Add-all operation is not supported."); } public boolean containsAll(Collection c) { for (Iterator it = entries.iterator(); it.hasNext();) { if(!c.contains(extract((ScopedMapEntry)it.next()))){ return false; } } return true; } public boolean removeAll(Collection c) { boolean changed = false; for (Iterator it = entries.iterator(); it.hasNext();) { ScopedMapEntry entry = (ScopedMapEntry)it.next(); if(c.contains(extract(entry))){ if(entry.isMutable()){ it.remove(); thisMap.remove(entry.getKey()); changed = true; } } } return changed; } public boolean retainAll(Collection c) { boolean changed = false; for (Iterator it = entries.iterator(); it.hasNext();) { ScopedMapEntry entry = (ScopedMapEntry)it.next(); if(!c.contains(extract(entry))){ if(entry.isMutable()){ it.remove(); thisMap.remove(entry.getKey()); changed = true; } } } return changed; } public Iterator iterator() { return new ScopedMapEntriesIterator(this, extractKey); } public Object[] toArray(Object[] a) { for (int i = 0; i < a.length; i++) { a[i] = entries.get(i); } if(entries.size() > a.length){ throw new ArrayIndexOutOfBoundsException(a.length); } else{ return a; } } Iterator entryIterator(){ return entries.iterator(); } void removeEntry(ScopedMapEntry entry){ if(entry.isMutable()){ entries.remove(entry); thisMap.remove(entry.getKey()); } } void update(){ for (Iterator it = superMap.entrySet().iterator(); it.hasNext();) { Map.Entry entry = (Map.Entry)it.next(); Object key = entry.getKey(); if(!thisMap.containsKey(key)){ ScopedMapEntry sme = new ScopedMapEntry(entry, false); entries.add(sme); } } for (Iterator it = thisMap.entrySet().iterator(); it.hasNext();) { Map.Entry entry = (Map.Entry)it.next(); ScopedMapEntry sme = new ScopedMapEntry(entry, true); entries.add(sme); } } } --- NEW FILE: ScopedMapEntry.java --- /* Created on Mar 25, 2004 */ package org.marmalade.util; import java.util.Map; import java.util.Map.Entry; /** * @author jdcasey */ public class ScopedMapEntry implements Entry { private Map.Entry entry; private boolean mutable = true; public ScopedMapEntry(Map.Entry entry, boolean mutable) { this.entry = entry; this.mutable = mutable; } public boolean isMutable(){ return mutable; } public Object getKey() { return entry.getKey(); } public Object getValue() { return entry.getValue(); } public Object setValue(Object value) { if(!mutable){ throw new UnsupportedOperationException("Specified map entry is immutable."); } else{ return entry.setValue(value); } } } --- NEW FILE: ScopedMap.java --- /* Created on Mar 25, 2004 */ package org.marmalade.util; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Set; /** Create a local copy of all mappings in the super-map. * * @author John Casey */ public class ScopedMap implements Map{ private Map superMap; private Map thisMap; private int superMapSize; private ScopedMapEntriesSet keySet; private ScopedMapEntriesSet valueSet; private ScopedMapEntriesSet entrySet; public ScopedMap() { init(Collections.EMPTY_MAP); } public ScopedMap(Map superMap){ init(superMap); } private void init(Map superMap){ Map m = superMap; if(m == null){m = Collections.EMPTY_MAP;} this.superMap = Collections.unmodifiableMap(m); this.superMapSize = superMap.size(); this.thisMap = new HashMap(superMap); this.entrySet = new ScopedMapEntriesSet(superMap, thisMap, null); this.keySet = new ScopedMapEntriesSet(superMap, thisMap, Boolean.TRUE); this.valueSet = new ScopedMapEntriesSet(superMap, thisMap, Boolean.FALSE); } private void update(){ entrySet.update(); keySet.update(); valueSet.update(); } public int size() { return superMapSize + thisMap.size(); } public void clear() { thisMap.clear(); update(); } public boolean isEmpty() { return superMapSize < 1 || thisMap.isEmpty(); } public boolean containsKey(Object key) { return thisMap.containsKey(key) || (superMap != null && superMap.containsKey(key)); } public boolean containsValue(Object value) { return thisMap.containsValue(value) || (superMap != null && superMap.containsValue(value)); } public Collection values() { return valueSet; } public void putAll(Map t) { thisMap.putAll(t); update(); } public Set entrySet() { return entrySet; } public Set keySet() { return keySet; } public Object get(Object key) { Object result = thisMap.get(key); if(result == null){ superMap.get(key); } return result; } public Object remove(Object key) { Object result = thisMap.remove(key); if(result != null){ update(); } return result; } public Object put(Object key, Object value) { Object result = thisMap.put(key, value); update(); return result; } } --- NEW FILE: ScopedMapEntriesIterator.java --- /* Created on Mar 25, 2004 */ package org.marmalade.util; import java.util.Iterator; /** * @author jdcasey */ public class ScopedMapEntriesIterator implements Iterator { private ScopedMapEntriesSet collection; private Iterator entryIterator; private Boolean extractKey; private ScopedMapEntry current; public ScopedMapEntriesIterator(ScopedMapEntriesSet collection, Boolean extractKey) { this.collection = collection; this.entryIterator = collection.entryIterator(); this.extractKey = extractKey; } public Object extract(ScopedMapEntry entry){ if(extractKey == null){ return entry; } else if(Boolean.TRUE == extractKey){ return entry.getKey(); } else{ return entry.getValue(); } } public void remove() { if(current == null){ throw new IllegalArgumentException("You must call next() before calling remove()."); } else{ collection.removeEntry(current); } } public boolean hasNext() { return entryIterator.hasNext(); } public Object next() { current = (ScopedMapEntry)entryIterator.next(); return extract(current); } } |
From: John C. <joh...@co...> - 2004-03-26 05:24:30
|
Update of /cvsroot/commonjava/other-projects/marmalade In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30096 Added Files: .classpath .project Log Message: initial checkin. --- NEW FILE: .project --- <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>marmalade</name> <comment></comment> <projects> </projects> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> </natures> </projectDescription> --- NEW FILE: .classpath --- <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/> <classpathentry kind="src" path="src/test/java"/> <classpathentry kind="src" path="subprojects/ognl-el/src/main/java"/> <classpathentry kind="src" path="subprojects/ognl-el/src/test/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="var" path="MAVEN_REPO/tagalog/jars/tagalog-SNAPSHOT.jar" sourcepath="WORKSPACE/tagalog/src/java"/> <classpathentry kind="var" path="MAVEN_REPO/ognl/jars/ognl-2.5.1.jar"/> <classpathentry kind="var" path="MAVEN_REPO/commonjava/jars/commonjava-reflection-2.0-1.jar"/> <classpathentry kind="output" path="target/classes"/> </classpath> |
From: John C. <joh...@co...> - 2004-03-26 05:24:30
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/main/java/org/marmalade In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30096/src/main/java/org/marmalade Added Files: ConfigurationException.java MarmaladeFactory.java Log Message: initial checkin. --- NEW FILE: MarmaladeFactory.java --- /* Created on Mar 24, 2004 */ package org.marmalade; import java.util.Map; import org.codehaus.tagalog.Attributes; import org.commonjava.reflection.FinderException; import org.commonjava.reflection.ImplFinder; import org.marmalade.el.ExpressionEvaluator; /** Provide factory methods to retrieve specific implementations for various dynamic elements of * the marmalade system. * * @author John Casey */ public final class MarmaladeFactory { private static final String DEFAULT_EL_TYPE = "ognl"; private static final String EL_LOCK = "EL-LOCK".intern(); private static ExpressionEvaluator el; /** Factory; deny construction. */ private MarmaladeFactory() { } public static ExpressionEvaluator getDefaultExpressionEvaluator() throws ConfigurationException { return getExpressionEvaluator(DEFAULT_EL_TYPE); } public static ExpressionEvaluator getExpressionEvaluator(String type) throws ConfigurationException { synchronized(EL_LOCK){ if(el == null){ try { el = (ExpressionEvaluator)ImplFinder.findImplementation( ExpressionEvaluator.class, new Object[]{} ); } catch (FinderException e) { throw new ConfigurationException( "Error retrieving ExpressionEvaluator implementation.", e ); } } return el; } } } --- NEW FILE: ConfigurationException.java --- /* Created on Mar 24, 2004 */ package org.marmalade; import org.codehaus.tagalog.TagException; /** Represents an error while executing a marmalade process, which is related to a * misconfiguration of the marmalade environment. * * @author John Casey */ public class ConfigurationException extends TagException { /** Create a new exception instance * @param message The error message */ public ConfigurationException(String message) { super(message); } /** Create a new exception instance * @param message The error message * @param cause The root cause which interrupted marmalade processing */ public ConfigurationException(String message, Throwable cause) { super(message, cause); } } |
From: John C. <joh...@co...> - 2004-03-26 05:24:30
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/main/java/org/marmalade/el In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30096/src/main/java/org/marmalade/el Added Files: ExpressionEvaluator.java ExpressionEvaluationException.java Log Message: initial checkin. --- NEW FILE: ExpressionEvaluator.java --- /* Created on Mar 24, 2004 */ package org.marmalade.el; import java.util.Map; /** Represents a bridge to an expression language processor which is used to resolve * object expressions within the parsing process. * * @author John Casey */ public interface ExpressionEvaluator { public Object evaluate(String expression, Map context) throws ExpressionEvaluationException; } --- NEW FILE: ExpressionEvaluationException.java --- /* Created on Mar 24, 2004 */ package org.marmalade.el; import org.codehaus.tagalog.TagException; /** Exception signalling that an error has occurred while evaluating an expression. * * @author John Casey */ public class ExpressionEvaluationException extends TagException { /** Construct a new exception to convey failure in evaluating an expression. * @param message The message giving detailed info about this exception */ public ExpressionEvaluationException(String message) { super(message); } /** Construct a new exception to convey failure in evaluating an expression. * @param message The message giving detailed info about this exception * @param cause The root cause of this exception */ public ExpressionEvaluationException(String message, Throwable cause) { super(message, cause); } } |
From: John C. <joh...@co...> - 2004-03-26 05:24:19
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/main/java/org/marmalade/el In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30030/src/main/java/org/marmalade/el Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/src/main/java/org/marmalade/el added to the repository |
From: John C. <joh...@co...> - 2004-03-26 05:24:18
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/main/java/org/marmalade/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30030/src/main/java/org/marmalade/util Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/src/main/java/org/marmalade/util added to the repository |
From: John C. <joh...@co...> - 2004-03-26 05:24:18
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/main In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30030/src/main Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/src/main added to the repository |
From: John C. <joh...@co...> - 2004-03-26 05:24:18
|
Update of /cvsroot/commonjava/other-projects/marmalade/src/main/java/org In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30030/src/main/java/org Log Message: Directory /cvsroot/commonjava/other-projects/marmalade/src/main/java/org added to the repository |