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>
components
protected 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 void
addComponent(CreateGenericComponentTask component)
protected void
addPropertyNotNull(String name, Object value)
void
addPropertySet(org.apache.tools.ant.types.PropertySet propertySet)
protected boolean
allTrue(String... keys)
protected CompositeData
buildGenericComponentData(LoggingManagementMBean loggingManagementMBean, CreateGenericComponentTask componentElement)
protected void
execute()
protected void
expandPropertySets()
Set<CreateGenericComponentTask>
getComponents()
String
getPluginname()
protected String[]
getPropertiesArray()
void
setPluginname(String pluginname)
void
setProperties(String propertyString)
protected void
validateHasProperty(String key)
protected void
validateParameters()
-
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:
execute
in classAbstractBaseTask
- Throws:
org.apache.tools.ant.BuildException
-
validateParameters
protected void validateParameters() throws org.apache.tools.ant.BuildException
- Specified by:
validateParameters
in 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)
-
-