Hi Erik

not really. Castor currently support two modes of object instantiation:

a) with default constructor
b) through custom constructor with the arguments mapped through the
mapping file.

Having said that, I am completely open to introducing a new mode of
object instantiation. Looking at the example given below, I wonder how
to express this through a mapping file, though.

Regards
Werner

Erik Lindgren wrote:
> Hi,
> 
> Is it possible to create castor mappings for bean objects that are using
> inner static builders rather than setter methods in order to support
> marshalling and unmarshalling? 
> 
> The construct we're using to create objects are the following
> 
> Item item = Item.builder().itemNo("123").itemDesc("Item A").build();
> 
> Regards
> Erik
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to