Class ConfigBeanDefaultValue
- java.lang.Object
-
- com.sun.enterprise.config.modularity.customization.ConfigBeanDefaultValue
-
public class ConfigBeanDefaultValue extends Object
Carries the default configuration values for a ConfigBeanProxy
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
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 Detail
-
getLocation
public String getLocation()
-
getXmlConfiguration
public String getXmlConfiguration()
-
getConfigBeanClassName
public String getConfigBeanClassName()
-
replaceCurrentIfExists
public boolean replaceCurrentIfExists()
-
getCustomizationTokens
public List<ConfigCustomizationToken> getCustomizationTokens()
-
addCustomizationToken
public boolean addCustomizationToken(ConfigCustomizationToken e)
-
setLocation
public void setLocation(String location)
-
setXmlConfiguration
public void setXmlConfiguration(String xmlConfiguration)
-
setConfigBeanClassName
public void setConfigBeanClassName(String configBeanClassName)
-
setReplaceCurrentIfExists
public void setReplaceCurrentIfExists(boolean replaceCurrentIfExists)
-
setCustomizationTokens
public void setCustomizationTokens(List<ConfigCustomizationToken> customizationTokens)
-
-