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

java.lang.Object
  extended byorg.apache.cocoon.forms.datatype.convertor.PlainBeanConvertorBuilder
All Implemented Interfaces:
BeanConvertorBuilder, ConvertorBuilder

public class PlainBeanConvertorBuilder
extends Object
implements BeanConvertorBuilder

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: PlainBeanConvertorBuilder.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
PlainBeanConvertorBuilder()
           
 
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

PlainBeanConvertorBuilder

public PlainBeanConvertorBuilder()
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-2008 The Apache Software Foundation. All Rights Reserved.