Class ConfigBeanDefaultValue
java.lang.Object
com.sun.enterprise.config.modularity.customization.ConfigBeanDefaultValue
Carries the default configuration values for a ConfigBeanProxy
-
Constructor Summary
ConstructorsConstructorDescriptionConfigBeanDefaultValue(String location, String configBeanClassName, InputStream xmlSnippetFileInputStream, boolean replaceCurrentIfExists, List<ConfigCustomizationToken> customizationTokens) ConfigBeanDefaultValue(String location, String configBeanClassName, String xmlConfiguration, boolean replaceCurrentIfExists, List<ConfigCustomizationToken> customizationTokens) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidsetConfigBeanClassName(String configBeanClassName) voidsetCustomizationTokens(List<ConfigCustomizationToken> customizationTokens) voidsetLocation(String location) voidsetReplaceCurrentIfExists(boolean replaceCurrentIfExists) voidsetXmlConfiguration(String xmlConfiguration) toString()
-
Constructor Details
-
ConfigBeanDefaultValue
public ConfigBeanDefaultValue(String location, String configBeanClassName, String xmlConfiguration, boolean replaceCurrentIfExists, List<ConfigCustomizationToken> customizationTokens) - Type Parameters:
U- Type of the config bean which is an extension of ConfigBeanProxy- Parameters:
location- 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-
-
ConfigBeanDefaultValue
public ConfigBeanDefaultValue(String location, String configBeanClassName, InputStream xmlSnippetFileInputStream, boolean replaceCurrentIfExists, List<ConfigCustomizationToken> customizationTokens) throws Exception - Type Parameters:
U- Type of the config bean which is an extension of ConfigBeanProxy- Parameters:
location- 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-- Throws:
Exception- If the stream is not readable or closing the stream throws exception constructor will fail with the exception.
-
ConfigBeanDefaultValue
public ConfigBeanDefaultValue()
-
-
Method Details
-
getLocation
-
getXmlConfiguration
-
getConfigBeanClassName
-
replaceCurrentIfExists
public boolean replaceCurrentIfExists() -
getCustomizationTokens
-
addCustomizationToken
-
setLocation
-
setXmlConfiguration
-
setConfigBeanClassName
-
setReplaceCurrentIfExists
public void setReplaceCurrentIfExists(boolean replaceCurrentIfExists) -
setCustomizationTokens
-
toString
-