@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)
XmlService
unmarshall
in interface XmlService
uri
- 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)
XmlService
unmarshall
in interface XmlService
uri
- 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)
XmlService
createEmptyHandle
in interface XmlService
jaxbAnnotatedInterface
- 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)
XmlService
createEmptyHandle
in interface XmlService
jaxbAnnotationInterface
- The non-null interface class corresponding to
the XML to be parsedpublic <T> T createBean(Class<T> beanInterface)
XmlService
createBean
in interface XmlService
public ClassReflectionHelper getClassReflectionHelper()
public JAUtilities getJAUtilities()
Copyright © 2009–2015 Oracle Corporation. All rights reserved.