com.sun.jersey.server.impl.model.parameter.multivalued
Class StringReaderFactory
java.lang.Object
com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderFactory
- All Implemented Interfaces:
- StringReaderWorkers
public class StringReaderFactory
- extends Object
- implements StringReaderWorkers
- Author:
- Paul.Sandoz@Sun.Com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringReaderFactory
public StringReaderFactory()
init
public void init(ProviderServices providerServices)
getStringReader
public <T> StringReader<T> getStringReader(Class<T> type,
Type genericType,
Annotation[] annotations)
- Description copied from interface:
StringReaderWorkers
- Get a string reader that matches a set of criteria.
- Specified by:
getStringReader
in interface StringReaderWorkers
- Type Parameters:
T
- the type of object to be read from a string.- Parameters:
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
.
- Returns:
- a StringReader that matches the supplied criteria or null
if none is found.
Copyright © 2013 Oracle Corporation. All Rights Reserved.