ch.elca.el4j.services.monitoring.jmx
Class HtmlAdapterFactoryBean

java.lang.Object
  extended by ch.elca.el4j.services.monitoring.jmx.HtmlAdapterFactoryBean
All Implemented Interfaces:
DisposableBean, FactoryBean, InitializingBean

public class HtmlAdapterFactoryBean
extends Object
implements FactoryBean, InitializingBean, DisposableBean

This class creates a HtmlAdapter for an MBeanServer.

Author:
Raphael Boog (RBO)
File-location:
HtmlAdapterFactoryBean
Last check-in date:
2009-12-01 10:59:54 +0100 (Di, 01. Dez 2009) by jonasha for revision 4010

Constructor Summary
HtmlAdapterFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
          Creating an HtmlAdaptorServer and register it at the MBean Server.
 void destroy()
          
 com.sun.jdmk.comm.HtmlAdaptorServer getHtmlAdaptorServer()
          The getter method for the HtmlAdaptorServer.
 String getHtmlParserName()
           
 int getInstanceCounter()
          The getter method for the instanceCounter member.
 String getName()
          The getter method for the name of the ObjectName.
 Object getObject()
          
 Class getObjectType()
          
 int getPort()
          The getter method for the port member.
 MBeanServer getServer()
          The getter method for the MBean Server.
 String getStylesheetPath()
           
 boolean isIgnoreInstanceAlreadyExistsException()
           
 boolean isSingleton()
          
 void setHtmlParserName(String htmlParserName)
           
 void setIgnoreInstanceAlreadyExistsException(boolean ignoreInstanceAlreadyExistsException)
           
 void setInstanceCounter()
          Save the class variable s_counter to an instance member and increment the class variable by 1.
 void setName(String name)
          The setter method for the name of the ObjectName.
 void setPort(int port)
          The setter method for the port member.
 void setServer(MBeanServer mBeanServer)
          The setter method for the MBean Server.
 void setStylesheetPath(String stylesheetPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlAdapterFactoryBean

public HtmlAdapterFactoryBean()
Method Detail

getObject

public Object getObject()
                 throws Exception

Specified by:
getObject in interface FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()

Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()

Specified by:
isSingleton in interface FactoryBean

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Creating an HtmlAdaptorServer and register it at the MBean Server.

Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception - In case the object name is invalid or the HtmlAdaptorServer could not be registered at the MBean Server.

getInstanceCounter

public int getInstanceCounter()
The getter method for the instanceCounter member.

Returns:
The instanceCounter member

setInstanceCounter

public void setInstanceCounter()
Save the class variable s_counter to an instance member and increment the class variable by 1.


getPort

public int getPort()
The getter method for the port member.

Returns:
The port of the HtmlAdaptorServer.

setPort

public void setPort(int port)
The setter method for the port member.

Parameters:
port - The port to set.

getServer

public MBeanServer getServer()
The getter method for the MBean Server.

Returns:
The MBean Server this HtmlAdaptorServer is registered at.

setServer

public void setServer(MBeanServer mBeanServer)
The setter method for the MBean Server.

Parameters:
mBeanServer - The MBean Server to set.

isIgnoreInstanceAlreadyExistsException

public boolean isIgnoreInstanceAlreadyExistsException()
Returns:
whether to ignore InstanceAlreadyExistsExceptions or not

setIgnoreInstanceAlreadyExistsException

public void setIgnoreInstanceAlreadyExistsException(boolean ignoreInstanceAlreadyExistsException)
Parameters:
ignoreInstanceAlreadyExistsException - whether to ignore InstanceAlreadyExistsExceptions or not

getName

public String getName()
The getter method for the name of the ObjectName.

Returns:
The name of the ObjectName.

setName

public void setName(String name)
The setter method for the name of the ObjectName.

Parameters:
name - The name of the ObjectName to set.

getHtmlParserName

public String getHtmlParserName()
Returns:
Returns the htmlParserName.

setHtmlParserName

public void setHtmlParserName(String htmlParserName)
Parameters:
htmlParserName - The htmlParserName to set.

getStylesheetPath

public String getStylesheetPath()
Returns:
Returns the stylesheetPath.

setStylesheetPath

public void setStylesheetPath(String stylesheetPath)
Parameters:
stylesheetPath - The stylesheetPath to set.

getHtmlAdaptorServer

public com.sun.jdmk.comm.HtmlAdaptorServer getHtmlAdaptorServer()
The getter method for the HtmlAdaptorServer.

Returns:
The HtmlAdaptorServer.

destroy

public void destroy()
             throws Exception

Specified by:
destroy in interface DisposableBean
Throws:
Exception


Copyright © 2005-2011 ELCA. All Rights Reserved.