Class CreateGenericComponentTask
- java.lang.Object
-
- com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
-
- com.opencloud.slee.mlet.ant.tasks.CreateGenericComponentTask
-
- All Implemented Interfaces:
SubTask
- Direct Known Subclasses:
AddLoggerComponentTask,CreateAppenderTask
public class CreateGenericComponentTask extends AbstractBaseTask
Defines a logging component.
Ant Parameters Attribute Type Description Required pluginname
String
The Log4J plugin name for this component.
Yes.
properties
String
A comma separated list of configuration properties for the appender. Each property is a key=value pair. Use this or a nested propertyset.
No.
Nested elements Element
Description
Required
propertyset
Configuration properties for this appender. Alternative to the properties attribute.
No.
component
Additional components such as KeyValuePairs, etc. Multiple components may be specified.
No
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<CreateGenericComponentTask>componentsprotected Map<String,Object>properties-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
client, failOnError
-
-
Constructor Summary
Constructors Constructor Description CreateGenericComponentTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComponent(CreateGenericComponentTask component)protected voidaddPropertyNotNull(String name, Object value)voidaddPropertySet(org.apache.tools.ant.types.PropertySet propertySet)protected booleanallTrue(String... keys)protected CompositeDatabuildGenericComponentData(LoggingManagementMBean loggingManagementMBean, CreateGenericComponentTask componentElement)protected voidexecute()protected voidexpandPropertySets()Set<CreateGenericComponentTask>getComponents()StringgetPluginname()protected String[]getPropertiesArray()voidsetPluginname(String pluginname)voidsetProperties(String propertyString)protected voidvalidateHasProperty(String key)protected voidvalidateParameters()-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
-
-
-
-
Field Detail
-
components
protected final Set<CreateGenericComponentTask> components
-
-
Method Detail
-
execute
protected void execute() throws org.apache.tools.ant.BuildException- Specified by:
executein classAbstractBaseTask- Throws:
org.apache.tools.ant.BuildException
-
validateParameters
protected void validateParameters() throws org.apache.tools.ant.BuildException- Specified by:
validateParametersin classAbstractBaseTask- Throws:
org.apache.tools.ant.BuildException
-
validateHasProperty
protected void validateHasProperty(String key)
-
allTrue
protected boolean allTrue(String... keys)
-
expandPropertySets
protected void expandPropertySets()
-
getPropertiesArray
protected String[] getPropertiesArray()
-
buildGenericComponentData
protected CompositeData buildGenericComponentData(LoggingManagementMBean loggingManagementMBean, CreateGenericComponentTask componentElement) throws ConfigurationException
- Throws:
ConfigurationException
-
setProperties
public void setProperties(String propertyString)
-
addPropertySet
public void addPropertySet(org.apache.tools.ant.types.PropertySet propertySet)
-
addComponent
public void addComponent(CreateGenericComponentTask component)
-
getComponents
public Set<CreateGenericComponentTask> getComponents()
-
getPluginname
public String getPluginname()
-
setPluginname
public void setPluginname(String pluginname)
-
-