@Singleton @Named(value="DefaultJAXBXmlParsingService") public class JAXBXmlParser extends Object implements XmlServiceParser
DEFAULT_PARSING_SERVICE| Constructor and Description |
|---|
JAXBXmlParser() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
parseRoot(Class<T> clazz,
URI location,
Unmarshaller.Listener listener)
This method must return an instance of the given class as the root of
an XML graph
|
public <T> T parseRoot(Class<T> clazz, URI location, Unmarshaller.Listener listener) throws Exception
XmlServiceParserparseRoot in interface XmlServiceParserclazz - The class that can be used to set and get values. This class
will extend BaseHK2JAXBBeanlocation - The location of the file to parselistener - A listener that must be called via the contract of Unmarshaller.ListenerExceptionCopyright © 2009-2015 Oracle Corporation. All Rights Reserved.