public abstract class ObjectMapperTask extends Task implements AnnotatedAntTask, ClasspathDelegateAntTask, ConfigurableAntTask
Task
for
ObjectMapper
tasks.
<ObjectMapperTask classname="String" classpathref="Reference" description="String" registermodules="boolean" taskname="String">
<classpath .../>
<configure if="String" name="String" unless="String">... text ...</configure>
</ObjectMapperTask>
Modifier and Type | Class and Description |
---|---|
static class |
ObjectMapperTask.ReadValue
|
static class |
ObjectMapperTask.Setting
ObjectMapper configuration setting. |
Modifier and Type | Field and Description |
---|---|
protected ObjectMapper |
mapper |
description, location, project
Modifier | Constructor and Description |
---|---|
protected |
ObjectMapperTask()
No-argument constructor.
|
protected |
ObjectMapperTask(ObjectMapper mapper)
Protected constructor to allow subclasses to specify the
ObjectMapper . |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredConfigure(ObjectMapperTask.Setting setting) |
void |
execute()
Default implementation for
Task subclasses. |
void |
init()
Default implementation for
Task
subclasses. |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAntTaskName
log, log, log, log, log, log, log, log, log, log, log
createClasspath, delegate, delegate, getClassForName, getClassLoader, setClassname, setClasspathref
configure
protected final ObjectMapper mapper
protected ObjectMapperTask()
protected ObjectMapperTask(ObjectMapper mapper)
ObjectMapper
.mapper
- The ObjectMapper
.public void addConfiguredConfigure(ObjectMapperTask.Setting setting)
public void init() throws BuildException
ClasspathDelegateAntTask
Task
subclasses.init
in interface ClasspathDelegateAntTask
init
in interface ConfigurableAntTask
init
in class Task
BuildException
public void execute() throws BuildException
AnnotatedAntTask
Task
subclasses. Check attributes
annotated with AntTaskAttributeConstraint
.
See AnnotatedAntTaskConfigurationChecker
.execute
in interface AnnotatedAntTask
execute
in class Task
BuildException
- If a
AntTaskAttributeConstraint.Checker
fails.Copyright © 2015–2020 Allen D. Ball. All rights reserved.