@Singleton public class DomXmlParser extends Object implements XmlServiceParser
DEFAULT_PARSING_SERVICE| 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
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.ListenerExceptionpublic PreGenerationRequirement getPreGenerationRequirement()
XmlServiceParsergetPreGenerationRequirement in interface XmlServiceParserCopyright © 2009-2016 Oracle Corporation. All Rights Reserved.