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) String
private static org.apache.commons.logging.Log
(package private) boolean
(package private) String
(package private) ObjectName
(package private) MBeanServer
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addAttribute
(JmxSet arg) protected void
void
execute()
void
setArchive
(String archive) void
void
setCodebase
(String codebase) void
setModeler
(boolean modeler) void
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
Methods 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:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
-