Methods Summary |
---|
public int | doEndTag()
return EVAL_PAGE;
|
public int | doStartTag()
try
{
// Who do we proxy?
//
ObjectName objName = null;
if (mbeanName == null)
{
objName = new ObjectName (pageContext.getRequest().getParameter("ObjectName"));
}
else
{
objName = new ObjectName (mbeanName);
}
// Which type do we proxy?
//
Class type = Thread.currentThread().getContextClassLoader().loadClass(this.interfaceName);
// we build the proxy
//
Object result = MBeanProxy.get(type, objName, Server.getMBeanServer());
// we assign the proxy to the variable
//
pageContext.setAttribute(variableName, result);
return EVAL_BODY_INCLUDE;
}
catch (Exception e)
{
throw new JspTagException (e.toString());
}
|
public java.lang.String | getId() return this.variableName;
|
public java.lang.String | getIntf()
return this.interfaceName;
|
public java.lang.String | getMbean() return this.mbeanName;
|
public void | setId(java.lang.String var) this.variableName = var;
|
public void | setIntf(java.lang.String intf) this.interfaceName = intf;
|
public void | setMbean(java.lang.String mbean) this.mbeanName = mbean;
|