org.apache.commons.modeler.ant
Class MLETTask
Task
org.apache.commons.modeler.ant.MLETTask
public class MLETTask
extends 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.
archive
(package private) String archive
args
(package private) List args
attributes
(package private) List attributes
code
(package private) String code
codebase
(package private) String codebase
loaderRef
(package private) String loaderRef
log
private static Log log
modeler
(package private) boolean modeler
objectName
(package private) String objectName
oname
(package private) ObjectName oname
server
(package private) MBeanServer server
MLETTask
public MLETTask()
addArg
public void addArg(Arg arg)
addAttribute
public void addAttribute(JmxSet arg)
bindJmx
protected void bindJmx(String objectName,
String code,
String arg0,
List args)
throws Exception
execute
public void execute()
throws BuildException
getMBeanServer
public MBeanServer getMBeanServer()
getObjectName
public ObjectName getObjectName()
setArchive
public void setArchive(String archive)
setCode
public void setCode(String code)
setCodebase
public void setCodebase(String codebase)
setModeler
public void setModeler(boolean modeler)
setName
public void setName(String name)
Copyright (c) 2001-2003 - Apache Software Foundation