public static class JAXBStringReaderProviders.RootElementProvider extends JAXBStringReaderProviders implements StringReaderProvider
JAXBStringReaderProviders.RootElementProvider
Constructor and Description |
---|
JAXBStringReaderProviders.RootElementProvider(Injectable<SAXParserFactory> spf,
javax.ws.rs.ext.Providers ps) |
Modifier and Type | Method and Description |
---|---|
StringReader |
getStringReader(Class type,
Type genericType,
Annotation[] annotations)
Obtain a StringReader that can produce an instance of a particular type
from a string.
|
getStoredJAXBContext, getUnmarshaller
public JAXBStringReaderProviders.RootElementProvider(@Context Injectable<SAXParserFactory> spf, @Context javax.ws.rs.ext.Providers ps)
public StringReader getStringReader(Class type, Type genericType, Annotation[] annotations)
StringReaderProvider
getStringReader
in interface StringReaderProvider
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
.Copyright © 2013 Oracle Corporation. All rights reserved.