snmp.accessctrl
Class AccessControlFactory
java.lang.Object
|
+--snmp.accessctrl.AccessControlFactory
- public class AccessControlFactory
- extends java.lang.Object
The AccessControlFactory class creates the AccessControl object that
is specified in the configuration file or by passing the string of
class name.
- Version:
- $Revision: 0.1 $ $Date: 2004/03/09 06:03:56 $
- Author:
- Scott Cheng
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
private static AccessControlFactory instance
AccessControlFactory
private AccessControlFactory()
createAccessControl
public AccessControl createAccessControl()
throws SnmpException
- Creates the AccessControl object using the class name specified
in the configuration file.
- Returns:
- The newly created AccessControl object.
- Throws:
SnmpException
- thrown when any error occurs in creating
AccessControl object.
createAccessControl
public AccessControl createAccessControl(java.lang.String className)
throws SnmpException
- Creates the AccessControl object dynamically using the string of
class name.
- Returns:
- The newly created AccessControl object.
- Throws:
SnmpException
- thrown when any error occurs in creating
AccessControl object.
getInstance
public static AccessControlFactory getInstance()
- Gets the singleton object of the AccessControlFactory .
- Returns:
- Singleton object of the AccessControlFactory.