Package org.osjava.sj.loader.convert
Class BeanConverter
- java.lang.Object
-
- org.osjava.sj.loader.convert.BeanConverter
-
- All Implemented Interfaces:
Converter
public class BeanConverter extends java.lang.Object implements Converter
Create an object using its empty constructor, then call setXxx for each pseudo property. Only String properties are supported.Foo.name=Arthur Foo.answer=42 Foo.type=com.example.Person Foo.converter=org.osjava.sj.loader.convert.BeanConverter
-
-
Constructor Summary
Constructors Constructor Description BeanConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
convert(java.util.Properties properties, java.lang.String type)
Turn a String-based tree-structure into an Object.
-
-
-
Method Detail
-
convert
public java.lang.Object convert(java.util.Properties properties, java.lang.String type)
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.
-
-