org.apache.commons.modeler.ant

Class MLETTask

Known Direct Subclasses:
ModelerTask

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

(package private) String
archive
(package private) List
args
(package private) List
attributes
(package private) String
code
(package private) String
codebase
(package private) String
loaderRef
private static Log
log
(package private) boolean
modeler
(package private) String
objectName
(package private) ObjectName
oname
(package private) MBeanServer
server

Constructor Summary

MLETTask()

Method Summary

void
addArg(Arg arg)
void
addAttribute(JmxSet arg)
protected void
bindJmx(String objectName, String code, String arg0, List args)
void
execute()
MBeanServer
getMBeanServer()
ObjectName
getObjectName()
void
setArchive(String archive)
void
setCode(String code)
void
setCodebase(String codebase)
void
setModeler(boolean modeler)
void
setName(String name)

Field Details

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

Constructor Details

MLETTask

public MLETTask()

Method Details

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