|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.internal.inject.StringReaderFactory
@Singleton public class StringReaderFactory
An aggregate string reader provider that loads all
the registered StringValueReaderProvider implementations.
string reader,
which is subsequently returned from the factory. In case no non-null string reader
instance is found, null is returned from the factory.
| Method Summary | ||
|---|---|---|
|
getStringReader(java.lang.Class<T> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
Obtain a StringValueReader that can produce an instance of a particular
type from a string. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public <T> StringValueReader<T> getStringReader(java.lang.Class<T> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
StringValueReaderProviderStringValueReader that can produce an instance of a particular
type from a string.
getStringReader in interface StringValueReaderProviderT - The Java type to be produced.type - the class of object to be produced.genericType - the type of object to be produced. E.g. if the string
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.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||