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 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

      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