Package org.glassfish.hk2.json.api
Class JsonUtilities
java.lang.Object
org.glassfish.hk2.json.api.JsonUtilities
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the XmlService that will be added -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidenableJsonService(ServiceLocator locator) This method will make available aXmlServicenamedJSON_SERVICE_NAMEto be used to parse JSON formatted data.
-
Field Details
-
JSON_SERVICE_NAME
The name of the XmlService that will be added- See Also:
-
-
Constructor Details
-
JsonUtilities
public JsonUtilities()
-
-
Method Details
-
enableJsonService
This method will make available aXmlServicenamedJSON_SERVICE_NAMEto be used to parse JSON formatted data. It will ensure that the XmlService subsystem is properly initialized as perXmlServiceUtilities.enableXmlService(ServiceLocator)- Parameters:
locator- The non-null locator on which to enable a Json version of theXmlService
-