Revision: 833
http://stripes.svn.sourceforge.net/stripes/?rev=833&view=rev
Author: bengunter
Date: 2008-02-05 08:17:53 -0800 (Tue, 05 Feb 2008)
Log Message:
-----------
Renamed EXTENSION_LIST to PACKAGES for consistency's sake and fixed a cut &
paste problem in an error message.
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/config/BootstrapPropertyResolver.java
Modified:
trunk/stripes/src/net/sourceforge/stripes/config/BootstrapPropertyResolver.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/config/BootstrapPropertyResolver.java
2008-02-05 15:26:00 UTC (rev 832)
+++
trunk/stripes/src/net/sourceforge/stripes/config/BootstrapPropertyResolver.java
2008-02-05 16:17:53 UTC (rev 833)
@@ -47,7 +47,7 @@
private FilterConfig filterConfig;
/** The Configuration Key for looking up the comma separated list of
extension packages. */
- public static final String EXTENSION_LIST = "Extension.Packages";
+ public static final String PACKAGES = "Extension.Packages";
/** Constructs a new BootstrapPropertyResolver with the given
ServletConfig. */
public BootstrapPropertyResolver(FilterConfig filterConfig) {
@@ -115,7 +115,7 @@
else {
// we didn't find it in web.xml so now we check any extension
packages
ResolverUtil<T> resolver = new ResolverUtil<T>();
- String[] packages =
StringUtil.standardSplit(getProperty(EXTENSION_LIST));
+ String[] packages =
StringUtil.standardSplit(getProperty(PACKAGES));
resolver.findImplementations(targetType, packages);
Set<Class<? extends T>> classes = resolver.getClasses();
if (classes.size() == 1) {
@@ -154,10 +154,10 @@
classes.add(ReflectUtil.findClass(className));
}
catch (ClassNotFoundException e) {
- throw new StripesRuntimeException("Could not find
configured Interceptor ["
- + className + "]. The " + "property '" + paramName
+ "' contained ["
- + classList + "]. This value must contain fully
qualified class names "
- + "separated by commas.");
+ throw new StripesRuntimeException("Could not find class ["
+ className
+ + "] specified by the configuration parameter [" +
paramName
+ + "]. This value must contain fully qualified
class names separated "
+ + " by commas.");
}
}
}
@@ -177,7 +177,7 @@
List<Class<? extends T>> classes = new ArrayList<Class<? extends T>>();
ResolverUtil<T> resolver = new ResolverUtil<T>();
- String[] packages =
StringUtil.standardSplit(getProperty(EXTENSION_LIST));
+ String[] packages = StringUtil.standardSplit(getProperty(PACKAGES));
resolver.findImplementations(targetType, packages);
classes.addAll(resolver.getClasses());
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development