站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jmx API Documentation 英文版文档

MBeanElement (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档


org.jboss.mx.loading
Class MBeanElement

java.lang.Object
  extended byorg.jboss.mx.loading.MBeanElement

public class MBeanElement
extends Object

Dataholder class used with MBean file parsers. Contains the information that at minimum should allow the MBean loaded and registered to the MBean server.

Version:
$Revision: 1.10 $
Author:
Juha Lindfors.
See Also:
MBeanFileParser, MLetParser, org.jboss.mx.loading.XMLMBeanParser

Field Summary
static String MLET_DELEGATE_TO_CLR
          Property key for setting the boolean value 'delegateToCLR' for MLet MBeans (JMX 1.2)
 
Constructor Summary
MBeanElement()
           
 
Method Summary
 void addArg(String type, String value)
           
 List getArchives()
          Returns MBean archives.
 String getCode()
          Returns fully qualified class name of the MBean.
 String getCodebase()
          Returns MBean codebase URL.
 String[] getConstructorTypes()
           
 String[] getConstructorValues()
           
 String getName()
          Returns the object name of the MBean.
 String getObject()
          Returns the name of a serialized MBean representation in the archive.
 Object getProperty(String key)
           
 List getVersions()
          Returns MBean versions.
 void setArchive(String archive)
           
 void setCode(String code)
          Sets the fully qualified class name of the MBean entry.
 void setCodebase(String url)
          Sets the code base for an MLET entry.
 void setName(String name)
          Sets the object name of the MBean.
 void setObject(String object)
          Sets the name of the serialized MBean instance.
 void setProperty(String key, Object value)
           
 void setVersion(String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MLET_DELEGATE_TO_CLR

public static final String MLET_DELEGATE_TO_CLR
Property key for setting the boolean value 'delegateToCLR' for MLet MBeans (JMX 1.2)

See Also:
Constant Field Values
Constructor Detail

MBeanElement

public MBeanElement()
Method Detail

getCode

public String getCode()
Returns fully qualified class name of the MBean.

Returns:
class name or null if name not set

getObject

public String getObject()
Returns the name of a serialized MBean representation in the archive. Note that if the archive contains a file structure then the path to the serialized file is included in this string.

Returns:
serial file name or null if not set

getName

public String getName()
Returns the object name of the MBean.

Returns:
string representation of object name or null if not set

getArchives

public List getArchives()
Returns MBean archives.

Returns:
a list of MBean Java archives. An empty list if archives is not set.

getVersions

public List getVersions()
Returns MBean versions.

Returns:
a list of MBean versions. An empty list if versions is not set.

getCodebase

public String getCodebase()
Returns MBean codebase URL.

Returns:
codebase or null if not set

setCode

public void setCode(String code)
Sets the fully qualified class name of the MBean entry. The name is trimmed of quotes (") and additional equals (=) sign.

Parameters:
code - fully qualified class name of the MBean

setObject

public void setObject(String object)
Sets the name of the serialized MBean instance. Notice that if the archive contains a file structure its path must be included in the name. Tje name is trimmed of quotes (") and additional equals (=) sign.

Parameters:
object - file name and path in the archive

setName

public void setName(String name)
Sets the object name of the MBean. The name is trimmed of quotes (") and additional equals (=) sign.

Parameters:
name - string representation of an MBean object name

setCodebase

public void setCodebase(String url)
Sets the code base for an MLET entry. The codebase is trimmed of quotes (") and additional equals (=) sign.

Parameters:
url - url string pointing to the codebase

setArchive

public void setArchive(String archive)

setVersion

public void setVersion(String version)

addArg

public void addArg(String type,
                   String value)

getConstructorTypes

public String[] getConstructorTypes()

getConstructorValues

public String[] getConstructorValues()

setProperty

public void setProperty(String key,
                        Object value)

getProperty

public Object getProperty(String key)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.