public class XmlDomIntegrationUtilities extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_INSTANCE_NAME
If there is no key associated with a configured bean then the
instance name of that bean will be this string
|
static String |
PROPERTIES
The name of the field that will be filled in if the config bean
is of type PropertyBag
|
Constructor and Description |
---|
XmlDomIntegrationUtilities() |
Modifier and Type | Method and Description |
---|---|
static void |
enableHk2ConfigDomIntegration(ServiceLocator locator)
This enables the XmlDomIntegration layer of the system.
|
static void |
enableMapTranslator(ServiceLocator locator)
This adds in an implementation of
XmlDomTranslationService that
converts the hk2-config bean into a bean-like map. |
public static final String DEFAULT_INSTANCE_NAME
public static final String PROPERTIES
public static final void enableHk2ConfigDomIntegration(ServiceLocator locator)
locator
- The non-null locator to add hk2-config integration topublic static final void enableMapTranslator(ServiceLocator locator)
XmlDomTranslationService
that
converts the hk2-config bean into a bean-like map. The type and
instance names remain the same. This method is idempotent.
If the incoming bean implements PropertyBag then an extra field will be added to the map of type Properties with the name "properties" which contains the properties associated with the bean
locator
- The locator to add the translation service toCopyright © 2009–2018 Oracle Corporation. All rights reserved.