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
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
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
MLETTask()
           
 
Method Summary
 void addArg(Arg arg)
           
 void addAttribute(JmxSet arg)
           
protected  void bindJmx(java.lang.String objectName, java.lang.String code, java.lang.String arg0, java.util.List args)
           
 void execute()
           
 javax.management.MBeanServer getMBeanServer()
           
 javax.management.ObjectName getObjectName()
           
 void setArchive(java.lang.String archive)
           
 void setCode(java.lang.String code)
           
 void setCodebase(java.lang.String codebase)
           
 void setModeler(boolean modeler)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, 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(java.lang.String code)

setArchive

public void setArchive(java.lang.String archive)

setCodebase

public void setCodebase(java.lang.String codebase)

setName

public void setName(java.lang.String name)

getMBeanServer

public javax.management.MBeanServer getMBeanServer()

setModeler

public void setModeler(boolean modeler)

bindJmx

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

getObjectName

public javax.management.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-2008 The Apache Software Foundation. All Rights Reserved.