01: package test.objectfactory;
02:
03: import org.testng.annotations.ObjectFactory;
04: import org.testng.IObjectFactory;
05: import org.testng.ITestContext;
06: import org.testng.internal.ObjectFactoryImpl;
07:
08: /**
09: * @author Hani Suleiman
10: * Date: Mar 8, 2007
11: * Time: 10:05:55 PM
12: */
13: public class ContextAwareFactoryFactory {
14: @ObjectFactory
15: public IObjectFactory create(ITestContext context) {
16: assert context != null;
17: return new ObjectFactoryImpl();
18: }
19: }
|