org.apache.commons.jelly.tags.jmx
Class RegisterTag
java.lang.Object
org.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.jmx.RegisterTag
- All Implemented Interfaces:
- org.apache.commons.jelly.impl.CollectionTag, org.apache.commons.jelly.Tag
- public class RegisterTag
- extends org.apache.commons.jelly.TagSupport
- implements org.apache.commons.jelly.impl.CollectionTag
Registers a JavaBean or JMX MBean with a server..
- Version:
- $Revision: 155420 $
- Author:
- James Strachan
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Method Summary |
void |
addItem(java.lang.Object bean)
|
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
javax.management.ObjectName |
getName()
|
javax.management.MBeanServer |
getServer()
|
protected void |
register(javax.management.MBeanServer server,
java.lang.Object bean)
Registers the given bean with the MBeanServer |
void |
setName(javax.management.ObjectName name)
Sets the name. |
void |
setServer(javax.management.MBeanServer server)
Sets the MBeanServer. |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegisterTag
public RegisterTag()
addItem
public void addItem(java.lang.Object bean)
throws org.apache.commons.jelly.JellyTagException
- Specified by:
addItem
in interface org.apache.commons.jelly.impl.CollectionTag
- Throws:
org.apache.commons.jelly.JellyTagException
doTag
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.MissingAttributeException,
org.apache.commons.jelly.JellyTagException
- Specified by:
doTag
in interface org.apache.commons.jelly.Tag
- Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException
getName
public javax.management.ObjectName getName()
- Returns:
- ObjectName
setName
public void setName(javax.management.ObjectName name)
- Sets the name.
- Parameters:
name
- The name to set
getServer
public javax.management.MBeanServer getServer()
- Returns:
- MBeanServer
setServer
public void setServer(javax.management.MBeanServer server)
- Sets the MBeanServer. If this attribute is not supplied then the parent <server> tag
is used to get the MBeanServer instance to use.
- Parameters:
server
- The MBeanServer to register the mbeans with.
register
protected void register(javax.management.MBeanServer server,
java.lang.Object bean)
throws javax.management.InstanceAlreadyExistsException,
javax.management.MBeanRegistrationException,
javax.management.NotCompliantMBeanException
- Registers the given bean with the MBeanServer
- Throws:
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.NotCompliantMBeanException
Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.