On Mar 12, 2008, at 7:23 AM, Sergey Beryozkin wrote:
>
> I'm wondering what was the rationale for removing a
>
> supports(Class<?> type) method
>
> from a HeaderDelegate (HeaderProvider in 0.5) ?
>
> MessageBody providers still have supports() method, but why no such
> method exists anymore for HeaderDelegate ?
>
Additional message body providers can be supplied by an application so
we need a mechanism to identify which providers can handle which types.
Header delegates are supplied by the implementation so it can know
which class to use for each required type and there's no need for the
supports method.
Marc.
---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.