@Singleton @Visibility(value=LOCAL) public class XmlServiceImpl extends Object implements XmlService
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG_PARSING |
| Constructor and Description |
|---|
XmlServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createBean(Class<T> beanInterface)
This creates an instance of the given bean type
of with no fields of the bean filled
in.
|
<T> XmlRootHandle<T> |
createEmptyHandle(Class<T> jaxbAnnotationInterface)
This creates an empty handle (root will initially be null) corresponding to
the given interface class
|
<T> XmlRootHandle<T> |
createEmptyHandle(Class<T> jaxbAnnotatedInterface,
boolean advertiseInRegistry,
boolean advertiseInHub)
This creates an empty handle (root will initially be null) corresponding to
the given interface class
|
ClassReflectionHelper |
getClassReflectionHelper() |
JAUtilities |
getJAUtilities() |
XmlServiceParser |
getParser() |
ServiceLocator |
getServiceLocator() |
<T> XmlRootHandle<T> |
unmarshall(URI uri,
Class<T> jaxbAnnotatedClassOrInterface)
Unmarshalls the given URI using the jaxb annotated interface.
|
<T> XmlRootHandle<T> |
unmarshall(URI uri,
Class<T> jaxbAnnotatedInterface,
boolean advertiseInRegistry,
boolean advertiseInHub)
Unmarshalls the given URI using the jaxb annotated interface.
|
<T> XmlRootHandle<T> |
unmarshall(XMLStreamReader reader,
Class<T> jaxbAnnotatedInterface,
boolean advertiseInRegistry,
boolean advertiseInHub)
Unmarshalls an XML stream using the jaxb annotated interface.
|
public <T> XmlRootHandle<T> unmarshall(URI uri, Class<T> jaxbAnnotatedClassOrInterface)
XmlServiceXmlServiceParser
to parse the file.unmarshall in interface XmlServiceuri - The non-null URI whereby to find the xml corresponding to the classpublic <T> XmlRootHandle<T> unmarshall(URI uri, Class<T> jaxbAnnotatedInterface, boolean advertiseInRegistry, boolean advertiseInHub)
XmlServiceXmlServiceParser
to parse the file.unmarshall in interface XmlServiceuri - The non-null URI whereby to find the xml corresponding to the classadvertiseInRegistry - if true the entire tree of parsed xml will be added to the
ServiceLocatoradvertiseInHub - if true the entire tree of parsed xml will be added to the
HK2 configuration Hub (as bean-like maps)public <T> XmlRootHandle<T> unmarshall(XMLStreamReader reader, Class<T> jaxbAnnotatedInterface, boolean advertiseInRegistry, boolean advertiseInHub)
XmlServiceunmarshall in interface XmlServicereader - The non-null XMLStreamReader representing the XML to be readadvertiseInRegistry - if true the entire tree of parsed xml will be added to the
ServiceLocatoradvertiseInHub - if true the entire tree of parsed xml will be added to the
HK2 configuration Hub (as bean-like maps)public <T> XmlRootHandle<T> createEmptyHandle(Class<T> jaxbAnnotatedInterface, boolean advertiseInRegistry, boolean advertiseInHub)
XmlServicecreateEmptyHandle in interface XmlServicejaxbAnnotatedInterface - The non-null interface class corresponding to
the XML to be parsedadvertiseInRegistry - if true the entire tree of parsed xml will be added to the
ServiceLocatoradvertiseInHub - if true the entire tree of parsed xml will be added to the
HK2 configuration Hub (as bean-like maps)public <T> XmlRootHandle<T> createEmptyHandle(Class<T> jaxbAnnotationInterface)
XmlServicecreateEmptyHandle in interface XmlServicejaxbAnnotationInterface - The non-null interface class corresponding to
the XML to be parsedpublic <T> T createBean(Class<T> beanInterface)
XmlServicecreateBean in interface XmlServicepublic ClassReflectionHelper getClassReflectionHelper()
public JAUtilities getJAUtilities()
public ServiceLocator getServiceLocator()
public XmlServiceParser getParser()
Copyright © 2009-2016 Oracle Corporation. All Rights Reserved.