Hi Barry

Lets move a discussion on
https://issues.apache.org/jira/browse/CXF-1425

to this list.

In summary, 
we're discussing with Barry whether a list of JAX-RS Entity Providers (which 
know how to marshal/unmarshal given types) as configured in a given spring xml, 
should override a default list or not.

IMHO it should not be the case. It would put a strain on users. Users do not 
need to know about the fact that a given Book class will only be marshalled if 
a JAXB-aware provider is installed. If a given set of returned types is large 
then it will get complicated. User just need to know about the content type, 
XMLRootElement and similar things. Users do not need to know about class names 
for individual default providers, this will form some sort of a contract 
between a runtime and a user thus making it more difficult for us to change the 
things under the hood.

For example, we can configure a Jetty handler, say we can add a Jetty handler. 
When doing it we do not need to specify all other types of handlers jetty 
may've set up under the hood. I belive we should follow the same practice in 
this case.

As far as duplicates is concnerned : this is easy, lets just have a Set of full 
class names for individual providers. That would do for a start.

Thoughts ?

Cheers, Sergey




----- Original Message ----- 
From: "Beryozkin, Sergey" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, February 07, 2008 1:20 PM
Subject: RE: JAX-RS custom provider spring config


Hi Barry

This would be a nice addition, so that a collection of providers can be
registered. 

Cheers, Sergey

-----Original Message-----
From: Barry Fitzgerald [mailto:[EMAIL PROTECTED] 
Sent: 07 February 2008 12:29
To: [email protected]
Subject: JAX-RS custom provider spring config

Hi,

Just wondering is it possible to register a custom provider to the
server
using the spring config?

Thanks,

Barry

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to