users@jsr311.java.net

Some questions about 0.7 api

From: Sergey Beryozkin <sergey.beryozkin_at_iona.com>
Date: Tue, 6 May 2008 20:03:03 +0100

Hi

I'd like to ask few questions about some of the api changes in 0.7.

1. MessageBodyWriter has new parameters introduced.
For example, Type parameter is added to writeTo method and the MessageBodyWriter documentation says about it:

"genericType type of the object to be written. E.g if the message body is to be produced from a field. this will be the declared type of the field as returned by Field.getGenericType()"

So in cases like :

1.1 public Bar getBar() {
   return this.bar;
}

1.2 public Bar getBar() {
   return bars.bar;
}

the classes need to be introspected and checked if fileds of type Bar are available and if yes then those fields need to be examined further ?


2. RuntimeDelegate.createEndpoint(ApplicationConfig ac, Class<T> endpointType);

If it's JAX-RS then what is the value of T ?

Thanks, Sergey




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