@Singleton @Named(value="DefaultJAXBXmlParsingService") public class JAXBXmlParser extends Object implements XmlServiceParser
DEFAULT_PARSING_SERVICE
Constructor and Description |
---|
JAXBXmlParser() |
Modifier and Type | Method and Description |
---|---|
PreGenerationRequirement |
getPreGenerationRequirement()
This tells the system whether or not it needs to pregenerate all proxies
prior to parsing a document or if the proxies can be generated lazily
|
<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
XmlServiceParser
parseRoot
in interface XmlServiceParser
clazz
- The class that can be used to set and get values. This class
will extend BaseHK2JAXBBean
location
- The location of the file to parselistener
- A listener that must be called via the contract of Unmarshaller.ListenerException
public PreGenerationRequirement getPreGenerationRequirement()
XmlServiceParser
getPreGenerationRequirement
in interface XmlServiceParser
Copyright © 2009–2018 Oracle Corporation. All rights reserved.