MySnmpCrawler API

snmp.mbean
Class MBeanFactory

java.lang.Object
  |
  +--snmp.mbean.MBeanFactory

public class MBeanFactory
extends java.lang.Object

The MBeanFactory provides the factory method to create MBean object dynamically.

Version:
$Revision: 0.1 $ $Date: 2004/03/09 06:03:54 $
Author:
Scott Cheng

Field Summary
private static MBeanFactory instance
           
 
Constructor Summary
protected MBeanFactory()
          The default constructor.
 
Method Summary
 GenericMBean createMBean(java.lang.String mbeanClassName)
          Creates the MBean object dynamically with the class name.
static MBeanFactory getInstance()
          Gets the singleton object of the MBeanFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static MBeanFactory instance
Constructor Detail

MBeanFactory

protected MBeanFactory()
The default constructor.

Method Detail

createMBean

public GenericMBean createMBean(java.lang.String mbeanClassName)
                         throws SnmpException
Creates the MBean object dynamically with the class name.

Parameters:
mbeanClassName - The MBean class name.
Returns:
The GenericMBean object that is created dynamically.
Throws:
SnmpException - Thrown when the GenericMBean object cannot be created correctly.

getInstance

public static MBeanFactory getInstance()
Gets the singleton object of the MBeanFactory.

Returns:
The singleton object of the MBeanFactory.

MySnmpCrawler API