hkontrol.core
Class ObjectFactoryBase

java.lang.Object
  extended by hkontrol.core.ObjectFactoryBase
Direct Known Subclasses:
ModuleFactory, RuleFactory

public class ObjectFactoryBase
extends java.lang.Object

The ObjectFactoryBase provides its subclasses with methods which support easy object creation.


Constructor Summary
protected ObjectFactoryBase()
          The default constructor simply does nothing, since there is no initialization to do.
 
Method Summary
protected  java.lang.Object createObject(java.lang.String className)
          Instantiates a new object with the given class name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectFactoryBase

protected ObjectFactoryBase()
The default constructor simply does nothing, since there is no initialization to do.

Method Detail

createObject

protected java.lang.Object createObject(java.lang.String className)
                                 throws java.lang.ClassNotFoundException,
                                        java.lang.InstantiationException,
                                        java.lang.IllegalAccessException
Instantiates a new object with the given class name. To accomplish this, createObject tries to figure out the right class loader to use.

Parameters:
className - - the name of the class to instantiate
Returns:
an object of the named class
Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException