@Singleton public class XmlServiceImpl extends Object implements XmlService
| 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() |
<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
|
public <T> XmlRootHandle<T> unmarshall(URI uri, Class<T> jaxbAnnotatedClassOrInterface)
XmlServiceunmarshall 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)
XmlServiceunmarshall 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> 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()
Copyright © 2009-2016 Oracle Corporation. All Rights Reserved.