public class ConfigBeanDefaultValue extends Object
Constructor and Description |
---|
ConfigBeanDefaultValue() |
ConfigBeanDefaultValue(String location,
String configBeanClassName,
InputStream xmlSnippetFileInputStream,
boolean replaceCurrentIfExists,
List<ConfigCustomizationToken> customizationTokens) |
ConfigBeanDefaultValue(String location,
String configBeanClassName,
String xmlConfiguration,
boolean replaceCurrentIfExists,
List<ConfigCustomizationToken> customizationTokens) |
Modifier and Type | Method and Description |
---|---|
boolean |
addCustomizationToken(ConfigCustomizationToken e) |
String |
getConfigBeanClassName() |
List<ConfigCustomizationToken> |
getCustomizationTokens() |
String |
getLocation() |
String |
getXmlConfiguration() |
boolean |
replaceCurrentIfExists() |
void |
setConfigBeanClassName(String configBeanClassName) |
void |
setCustomizationTokens(List<ConfigCustomizationToken> customizationTokens) |
void |
setLocation(String location) |
void |
setReplaceCurrentIfExists(boolean replaceCurrentIfExists) |
void |
setXmlConfiguration(String xmlConfiguration) |
String |
toString() |
public ConfigBeanDefaultValue(String location, String configBeanClassName, String xmlConfiguration, boolean replaceCurrentIfExists, List<ConfigCustomizationToken> customizationTokens)
U
- Type of the config bean which is an extension of ConfigBeanProxylocation
- the location of the config bean which this configuration is intended to createconfigBeanClassName
- what is the type of the config bean this configuration is intended forxmlConfiguration
- the XML snippet that represent the mentioned configuration.
The XML snippet should be a valid config bean configurationreplaceCurrentIfExists
- should this config bean replace an already existing one or not.
Note that, this parameter will be processed only if the configuration is intended
for a named configuration element. The other condition for the replace to happen
is that this configuration get the chance to be processed which means it should
be part of an array of config beans intended for a service that has no configuration
present in the domain.xmlcustomizationTokens
- public ConfigBeanDefaultValue(String location, String configBeanClassName, InputStream xmlSnippetFileInputStream, boolean replaceCurrentIfExists, List<ConfigCustomizationToken> customizationTokens) throws Exception
U
- Type of the config bean which is an extension of ConfigBeanProxylocation
- the location of the config bean which this configuration is intended to createconfigBeanClassName
- what is the type of the config bean this configuration is intended forxmlSnippetFileInputStream
- An InputStream for the actual configuration which might be a file or anything
other InputStream to read the configuration from.replaceCurrentIfExists
- should this config bean replace an already existing one or not. Note that,
this parameter will be processed only if the configuration is intended for a
named configuration element. The other condition for the replace to happen is
that this configuration get the chance to be processed which means it should be
part of an array of config beans intended for a service that has no configuration
present in the domain.xmlcustomizationTokens
- Exception
- If the stream is not readable or closing the stream throws exception constructor
will fail with the exception.public ConfigBeanDefaultValue()
public String getLocation()
public String getXmlConfiguration()
public String getConfigBeanClassName()
public boolean replaceCurrentIfExists()
public List<ConfigCustomizationToken> getCustomizationTokens()
public boolean addCustomizationToken(ConfigCustomizationToken e)
public void setLocation(String location)
public void setXmlConfiguration(String xmlConfiguration)
public void setConfigBeanClassName(String configBeanClassName)
public void setReplaceCurrentIfExists(boolean replaceCurrentIfExists)
public void setCustomizationTokens(List<ConfigCustomizationToken> customizationTokens)
Copyright © 2021. All rights reserved.