[picocontainer-scm] [5630] java/2.x/trunk/pico/container/src/java/org/picocontainer/converters/BuiltInConverters.java: More javadoc.

mauro-yCVjj/[email protected]
Newsgroups gmane.comp.java.picocontainer.cvs
Message-ID <[email protected]>
Revision 5630
Author mauro
Date 2010-02-21 03:53:40 -0600 (Sun, 21 Feb 2010)

Log Message

More javadoc.

Modified Paths

- java/2.x/trunk/pico/container/src/java/org/picocontainer/converters/BuiltInConverters.java

Diff

Modified: java/2.x/trunk/pico/container/src/java/org/picocontainer/converters/BuiltInConverters.java (5629 => 5630)

--- java/2.x/trunk/pico/container/src/java/org/picocontainer/converters/BuiltInConverters.java 2010-02-21 09:31:28 UTC (rev 5629)
+++ java/2.x/trunk/pico/container/src/java/org/picocontainer/converters/BuiltInConverters.java 2010-02-21 09:53:40 UTC (rev 5630)
@@ -9,6 +9,12 @@
import java.util.HashMap;
import java.util.Map;

+/**
+ * Provides some built-in converters used by {@link DefaultPicoContainer}. It
+ * supports by default primitive types (and boxed equivalents) and for
+ * {@link File} and {@link URL} types. Built-in converters can be changed by
+ * extending the class and overriding the method {@link #addBuiltInConverters()}.
+ */
@SuppressWarnings("serial")
public class BuiltInConverters implements Converters, Serializable {

@@ -33,7 +39,7 @@

private void addMultiTypeConverter(Converter<?> converter, Class<?>... types) {
for (Class<?> type : types) {
- addConverter(converter, type);
+ addConverter(converter, type);
}
}

@@ -47,7 +53,7 @@

public Object convert(String paramValue, Type type) {
Converter<?> converter = converters.get(type);
- if (converter== null) {
+ if (converter == null) {
return null;
}
return converter.convert(paramValue);

----------

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.