org.apache.commons.jelly.tags.jmx
Class ServerTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.apache.commons.jelly.tags.jmx.ServerTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class ServerTag
extends org.apache.commons.jelly.TagSupport

Binds a Java bean to the given named Jelly tag so that the attributes of the tag set the bean properties..

Version:
$Revision: 155420 $
Author:
James Strachan

Field Summary
private static org.apache.commons.logging.Log log
          The Log to which logging calls will be made.
private  javax.management.MBeanServer server
           
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ServerTag()
           
 
Method Summary
protected  javax.management.MBeanServer createServer()
          Factory method to lazily create an MBeanServer if none is supplied
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 javax.management.MBeanServer getServer()
           
 void setServer(javax.management.MBeanServer server)
          Sets the server.
 
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
 

Field Detail

log

private static final org.apache.commons.logging.Log log
The Log to which logging calls will be made.


server

private javax.management.MBeanServer server
Constructor Detail

ServerTag

public ServerTag()
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.MissingAttributeException,
                  org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException

getServer

public javax.management.MBeanServer getServer()
Returns:
MBeanServer

setServer

public void setServer(javax.management.MBeanServer server)
Sets the server.

Parameters:
server - The server to set

createServer

protected javax.management.MBeanServer createServer()
Factory method to lazily create an MBeanServer if none is supplied

Returns:
MBeanServer