|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.server.impl.model.parameter.multivalued.StringReaderFactory
public class StringReaderFactory
Constructor Summary | |
---|---|
StringReaderFactory()
|
Method Summary | ||
---|---|---|
|
getStringReader(java.lang.Class<T> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
Get a string reader that matches a set of criteria. |
|
void |
init(ProviderServices providerServices)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringReaderFactory()
Method Detail |
---|
public void init(ProviderServices providerServices)
public <T> StringReader<T> getStringReader(java.lang.Class<T> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
StringReaderWorkers
getStringReader
in interface StringReaderWorkers
T
- the type of object to be read from a string.type
- the class of object to be read.genericType
- the type of object to be produced. E.g. if the
message body is to be converted into a method parameter, this will be
the formal type of the method parameter as returned by
Class.getGenericParameterTypes
.annotations
- an array of the annotations on the declaration of the
artifact that will be initialized with the produced instance. E.g. if the
string is to be converted into a method parameter, this will be
the annotations on that parameter returned by
Class.getParameterAnnotations
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |