org.apache.cocoon.forms.datatype.convertor
Class BeanConvertorBuilder

java.lang.Object
  extended by org.apache.cocoon.forms.datatype.convertor.BeanConvertorBuilder
All Implemented Interfaces:
ConvertorBuilder

public class BeanConvertorBuilder
extends Object
implements ConvertorBuilder

Creates BeanConvertors

The optional <fd:bean>FQCN</fd:bean> attribute is used to give this convertor a hint of which concrete bean class we are going to work with. If this attribute is not specified java.lang.Object is used.

Sometimes the toString() method doesn't give a good representation of a Java Bean suited for selection list IDs. For this an optional <fd:id-path>jx-path</fd:id-path> attribute can be specified to have this convertor to use a different string representation.

Version:
$Id: BeanConvertorBuilder.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Constructor Summary
BeanConvertorBuilder()
           
 
Method Summary
 Convertor build(Element configElement)
          Build a BeanConvertor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanConvertorBuilder

public BeanConvertorBuilder()
Method Detail

build

public Convertor build(Element configElement)
                throws Exception
Build a BeanConvertor

Specified by:
build in interface ConvertorBuilder
Parameters:
configElement - The configuration element
Returns:
An initialized Convertor
Throws:
Exception - In case of failure


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.