net.sf.testextensions
Class AccessFactory

java.lang.Object
  extended by net.sf.testextensions.AccessFactory

public final class AccessFactory
extends Object

The class AccessFactory generates AccessObjects from several start points.

Author:
forge-cl

Method Summary
static AccessObject newInstance(String aClassName)
          The method newInstance create a new instance of a class, using a constructor without arguments.
static AccessObject newInstance(String aClassName, Object[] aParameters)
          The method newInstance create a new instance of a class, using a constructor which suites to the arguments.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static AccessObject newInstance(String aClassName)
                                throws TestExtensionException
The method newInstance create a new instance of a class, using a constructor without arguments.

Parameters:
aClassName - the name of the class, which should be instantiated
Returns:
a instance of AccessObject for future access.
Throws:
TestExtensionException - when errors occures during intantiation

newInstance

public static AccessObject newInstance(String aClassName,
                                       Object[] aParameters)
                                throws TestExtensionException
The method newInstance create a new instance of a class, using a constructor which suites to the arguments.

Parameters:
aClassName - the name of the class, which should be instantiated
aParameters - the parameter for the constructor
Returns:
a instance of AccessObject for future access
Throws:
TestExtensionException - when errors occures during instantiation


Copyright © 2007. All Rights Reserved.