org.osjava.sj.loader.convert
Class NullConverter

java.lang.Object
  extended by org.osjava.sj.loader.convert.NullConverter
All Implemented Interfaces:
Converter

public class NullConverter
extends java.lang.Object
implements Converter


Constructor Summary
NullConverter()
           
 
Method Summary
 java.lang.Object convert(java.util.Properties properties, java.lang.String types)
          Turn a String-based tree-structure into an Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullConverter

public NullConverter()
Method Detail

convert

public java.lang.Object convert(java.util.Properties properties,
                                java.lang.String types)
Description copied from interface: Converter

Turn a String-based tree-structure into an Object. Additionally the type of object desired is known. This is usually a Java class, but this is not mandatory.

The properties structure is located at the point of the lookup key, so if the code asked for a com.example.Foo object, the properties structure would be everything below Foo.

To get at the value of com.example.Foo itself, request the empty string, "".

TODO: No way for a converter to know the delimiter-type.

Specified by:
convert in interface Converter
Parameters:
properties - a Properties data structure
types - a String representation of object desired