public class CreateGenericComponentTask extends AbstractBaseTask
Defines a logging component.
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. |
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 |
Modifier and Type | Field and Description |
---|---|
protected Set<CreateGenericComponentTask> |
components |
protected Map<String,Object> |
properties |
client, failOnError
Constructor and Description |
---|
CreateGenericComponentTask() |
Modifier and Type | Method and 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() |
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
protected final Set<CreateGenericComponentTask> components
protected void execute() throws org.apache.tools.ant.BuildException
execute
in class AbstractBaseTask
org.apache.tools.ant.BuildException
protected void validateParameters() throws org.apache.tools.ant.BuildException
validateParameters
in class AbstractBaseTask
org.apache.tools.ant.BuildException
protected void validateHasProperty(String key)
protected boolean allTrue(String... keys)
protected void expandPropertySets()
protected String[] getPropertiesArray()
protected CompositeData buildGenericComponentData(LoggingManagementMBean loggingManagementMBean, CreateGenericComponentTask componentElement) throws ConfigurationException
ConfigurationException
public void setProperties(String propertyString)
public void addPropertySet(org.apache.tools.ant.types.PropertySet propertySet)
public void addComponent(CreateGenericComponentTask component)
public Set<CreateGenericComponentTask> getComponents()
public String getPluginname()
public void setPluginname(String pluginname)