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.Task
Load 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.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String(package private) List(package private) List(package private) String(package private) String(package private) Stringprivate static org.apache.commons.logging.Log(package private) boolean(package private) String(package private) ObjectName(package private) MBeanServerFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAttribute(JmxSet arg) protected voidvoidexecute()voidsetArchive(String archive) voidvoidsetCodebase(String codebase) voidsetModeler(boolean modeler) voidMethods 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
log
private static org.apache.commons.logging.Log log -
code
String code -
archive
String archive -
codebase
String codebase -
objectName
String objectName -
oname
ObjectName oname -
args
List args -
attributes
List attributes -
loaderRef
String loaderRef -
server
MBeanServer server -
modeler
boolean modeler
-
-
Constructor Details
-
MLETTask
public MLETTask()
-
-
Method Details
-
addArg
-
addAttribute
-
setCode
-
setArchive
-
setCodebase
-
setName
-
getMBeanServer
-
setModeler
public void setModeler(boolean modeler) -
bindJmx
- Throws:
Exception
-
getObjectName
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-