org.apache.tools.ant.types.optional
Class MBeanType

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.types.DataType
              |
              +--org.apache.tools.ant.types.optional.ContextType
                    |
                    +--org.apache.tools.ant.types.optional.MBeanType
All Implemented Interfaces:
java.lang.Cloneable

public class MBeanType
extends ContextType
implements java.lang.Cloneable

This is an Ant type that represents a connection to a specific mbean with a server. This allows an MBean to be defined and then referred to by other JMX4Ant tasks using their mbeanref attribute.

Version:
$Version$
Author:
Brian Dueck

Field Summary
static java.lang.String DATA_TYPE_NAME
           
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
MBeanType()
           
 
Method Summary
 java.lang.String getName()
          Getter for property name.
 void setName(java.lang.String name)
          Setter for property name.
 
Methods inherited from class org.apache.tools.ant.types.optional.ContextType
getJndiName, getPassword, getProviderUrl, getServerType, getUser, setJndiName, setPassword, setProviderUrl, setServerType, setUser
 
Methods inherited from class org.apache.tools.ant.types.DataType
circularReference, dieOnCircularReference, getCheckedRef, getDescription, isReference, noChildrenAllowed, setDescription, setRefid, tooManyAttributes
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_TYPE_NAME

public static final java.lang.String DATA_TYPE_NAME
Constructor Detail

MBeanType

public MBeanType()
Method Detail

getName

public java.lang.String getName()
Getter for property name.
Returns:
Value of property name.

setName

public void setName(java.lang.String name)
Setter for property name. The object name of the JMX MBean. This name follows the standard JMX ObjectName form of:
[domainName]:[property=value][,property=value]*
Here are some examples for weblogic:
mydomain:Name=myconnectionPool,Type=JDBCConnectionPool

:Name=myconnectionPool,Type=JDBCConnectionPool
Here are some examples for jboss:
jboss.system:service=MainDeployer

jboss.system:type=Server
Parameters:
name - New value of property name.