org.apache.commons.modeler.ant

Class 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.
Field Summary
Stringarchive
Listargs
Listattributes
Stringcode
Stringcodebase
StringloaderRef
static Loglog
booleanmodeler
StringobjectName
ObjectNameoname
MBeanServerserver
Constructor Summary
MLETTask()
Method Summary
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)

Field Detail

archive

String archive

args

List args

attributes

List attributes

code

String code

codebase

String codebase

loaderRef

String loaderRef

log

private static Log log

modeler

boolean modeler

objectName

String objectName

oname

ObjectName oname

server

MBeanServer server

Constructor Detail

MLETTask

public MLETTask()

Method Detail

addArg

public void addArg(Arg arg)

addAttribute

public void addAttribute(JmxSet arg)

bindJmx

protected void bindJmx(String objectName, String code, String arg0, List args)

execute

public void execute()

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