abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r529112 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/util/ServiceUtil.java server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java
Date Mon, 16 Apr 2007 01:37:23 GMT
Author: jmsnell
Date: Sun Apr 15 18:37:21 2007
New Revision: 529112

URL: http://svn.apache.org/viewvc?view=rev&rev=529112
Log:
ServiceUtil was not passing in constructor args in certain cases
RegexTargetResolver was not using the contextpath in certain cases

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/ServiceUtil.java
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/ServiceUtil.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/ServiceUtil.java?view=diff&rev=529112&r1=529111&r2=529112
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/ServiceUtil.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/ServiceUtil.java
Sun Apr 15 18:37:21 2007
@@ -231,7 +231,7 @@
   public static Object locateInstance(ClassLoader loader, String id, Abdera abdera, Object...
args) {
     try {
       Class _class = loader.loadClass(id);
-      return _create(_class, abdera);
+      return _create(_class, abdera, args);
     } catch (Exception e) {
       // Nothing
     }

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java?view=diff&rev=529112&r1=529111&r2=529112
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/RegexTargetResolver.java
Sun Apr 15 18:37:21 2007
@@ -69,8 +69,7 @@
     this.patterns = new HashMap<Pattern, TargetType>();
     for (String p : patterns.keySet()) {
       TargetType type = patterns.get(p);
-      Pattern pattern = Pattern.compile(p);
-      this.patterns.put(pattern,type);
+      setPattern(p,type);
     }
   }
   



Mime
View raw message