org.apache.commons.modeler.ant
Class MLETTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by 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
 
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
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)
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MLETTask

public MLETTask()
Method Detail

addArg

public void addArg(Arg arg)

addAttribute

public void addAttribute(JmxSet arg)

setCode

public void setCode(String code)

setArchive

public void setArchive(String archive)

setCodebase

public void setCodebase(String codebase)

setName

public void setName(String name)

getMBeanServer

public MBeanServer getMBeanServer()

setModeler

public void setModeler(boolean modeler)

bindJmx

protected void bindJmx(String objectName,
                       String code,
                       String arg0,
                       List args)
                throws Exception
Throws:
Exception

getObjectName

public ObjectName getObjectName()

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.