Package org.apache.commons.modeler.ant
Class MLETTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.apache.commons.modeler.ant.MLETTask
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ModelerTask
public class MLETTask extends org.apache.tools.ant.TaskLoad an MBean. The syntax is similar with the, with few ant-specific extensions. A separate classloader can be used, the mechanism is similar with what taskdef is using. Note that mlet will use the arguments in the constructor.
-
-
Constructor Summary
Constructors Constructor Description MLETTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArg(Arg arg)voidaddAttribute(JmxSet arg)protected voidbindJmx(String objectName, String code, String arg0, List args)voidexecute()MBeanServergetMBeanServer()ObjectNamegetObjectName()voidsetArchive(String archive)voidsetCode(String code)voidsetCodebase(String codebase)voidsetModeler(boolean modeler)voidsetName(String name)-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
addArg
public void addArg(Arg arg)
-
addAttribute
public void addAttribute(JmxSet arg)
-
setCode
public void setCode(String code)
-
setArchive
public void setArchive(String archive)
-
setCodebase
public void setCodebase(String codebase)
-
setName
public void setName(String name)
-
getMBeanServer
public MBeanServer getMBeanServer()
-
setModeler
public void setModeler(boolean modeler)
-
bindJmx
protected void bindJmx(String objectName, String code, String arg0, List args) throws Exception
- Throws:
Exception
-
getObjectName
public ObjectName getObjectName()
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
-