1 package test.objectfactory; 2 3 import org.testng.IObjectFactory; 4 import org.testng.ITestContext; 5 import org.testng.annotations.ObjectFactory; 6 import org.testng.internal.ObjectFactoryImpl; 7 8 /** 9 * @author Hani Suleiman 10 * Date: Mar 8, 2007 11 * Time: 10:05:55 PM 12 */ 13 public class ContextAwareFactoryFactory 14 { 15 @ObjectFactory create(ITestContext context)16 public IObjectFactory create(ITestContext context) { 17 assert context != null; 18 return new ObjectFactoryImpl(); 19 } 20 } 21