Hi Dims,
+1, Please throw in an interface for someone to write a custom builder
and plug it in as well.
That's the tricky part.. We already have the hierachy starting from
StaxBuilder. There's is an inteface called OMStaxParserWrapper, but
nobodyt seem to be using it..  It'll be bit hard to plugin another
interface at this moment of time. Becuase of that I thought of using
StaxBuilder as the abstract class..  To be honest this will not be
easy for the users..

On a related note...Do you think a builder will need access to the
whole MessageContext and not just the content-type?
For the moment I thought of using the content-type and the
inputstream.. But ideally this decision will be based on how deep we
are going to use the builders. It would be nice if we can let the
builders to handle the attachment stuff too, but it's simply not
possible since Axiom is not aware of MessageContext.

Thanks,
Thilina


-- dims

On 12/11/06, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:
> Hi all,
> Axis2 logic for content-type to builder mapping is getting polluted
> over time with the introduction of new builders(MTOM,XOP...). We would
> like to propose a BuilderSelector to take over this logic making it
> more scalable and clean.
>
> BuilderSelector is effectively a Map of content-type to builder
> (extends StaxBuilder) implementations. We can  store this Map in the
> Axis2Configuration, which can be populated through the Axis2.xml. We
> can add  a new section to Axis2.xml in order to configure these
> mappings. BuilderSelector will play a much significant role as we go
> ahead with supporting more and more formats.  Also this will give a
> very good extension point to the users to add custom format support
> for Axis2. One example would be a user who wants to introduce a CORBA
> builder to Axis2 without hacking the internals.
>
> As a start we can introduce this as a fall back mechanism to support the
> new content-types. Over the time we can move all the builders selections
> to the BuilderSelector.
>
> Ideas??
>
> --
> Thilina Gunarathne
> WSO2, Inc.; http://www.wso2.com/
> Home page: http://webservices.apache.org/~thilina/
> Blog: http://thilinag.blogspot.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to