Re: Reusing CXF DataBindings in the JAX-RS implementation

2009-08-11 Thread Sergey Beryozkin
Will providing a set of classes be sufficient, when initializing a DataBinding from JAX-RS ? Should it be a map instead, for Type(s) from Method.getGenericResponseType() Method.getGenericResponseTypes()[index] also be available ? thanks, Sergey dkulp wrote: > > > Basically, I think we

Re: Reusing CXF DataBindings in the JAX-RS implementation

2009-07-30 Thread Sergey Beryozkin
I'd prefer not to have a bunch of different init(..) methods on the interface itself that everyone HAS to implement. Ok, given this argument, I'm happy with having a single void initialize(Map properties) I guess I could've argued that perhaps only DataBindings shipped with CXF would implement

Re: Reusing CXF DataBindings in the JAX-RS implementation

2009-07-30 Thread Daniel Kulp
Basically, I think we should have: interface PropertiesInitializedDataBinding extends Databinding { void initialize(Map properties); } Then, we make our AbstractDataBinding implement that interface and add a method like: void initialize(Map properties) { Service svc = properties.get("...S

Re: Reusing CXF DataBindings in the JAX-RS implementation

2009-07-30 Thread Sergey Beryozkin
Hi I think what might make sense for a short term "binary compatible" type approach is to add a new interface like "ClassSetDataBinding" or something that defines the init(...) method that is needed for JAXRS. JAX-RS can then do instanceof on the databinding to see if it WILL work for it.

Re: Reusing CXF DataBindings in the JAX-RS implementation

2009-07-30 Thread Daniel Kulp
I think what might make sense for a short term "binary compatible" type approach is to add a new interface like "ClassSetDataBinding" or something that defines the init(...) method that is needed for JAXRS. JAX-RS can then do instanceof on the databinding to see if it WILL work for it. That