Package org.glassfish.hk2.xml.api
Class XmlServiceUtilities
java.lang.Object
org.glassfish.hk2.xml.api.XmlServiceUtilities
Useful utilities for initializing the HK2 XmlService
- Author:
- jwells
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidenableDomXmlService(ServiceLocator locator) This will enable all of the same xml parsers asenableXmlService(ServiceLocator)but will set the rank of the stream-based xml parser to be higher than that of the JAXB based onestatic voidenableXmlService(ServiceLocator locator) Enables Hk2 XmlServices in the given locator.
-
Constructor Details
-
XmlServiceUtilities
public XmlServiceUtilities()
-
-
Method Details
-
enableXmlService
Enables Hk2 XmlServices in the given locator. Will also enable the HK2 Configuration Hub if the hub has not already been started. This operation is idempotent in that if the named XmlService is already available in the given locator then this method does nothing. Only the JAXB XML parser will be added- Parameters:
locator- The non-null locator to which to add theXmlService
-
enableDomXmlService
This will enable all of the same xml parsers asenableXmlService(ServiceLocator)but will set the rank of the stream-based xml parser to be higher than that of the JAXB based one- Parameters:
locator- The non-null locator to which to add theXmlService
-