/** * Note that overloaded methods are supported. */ public static FactoryMethods newInstance(TestBean tb) { return new FactoryMethods(tb, "default", 0); }
/** * Note that overloaded methods are supported. */ public static FactoryMethods newInstance(TestBean tb) { return new FactoryMethods(tb, "default", 0); }
static FactoryMethods newInstance(TestBean tb, int num, Integer something) { if (something != null) { throw new IllegalStateException("Should never be called with non-null value"); } return new FactoryMethods(tb, null, num); }
protected static FactoryMethods newInstance(TestBean tb, int num, String name) { if (name == null) { throw new IllegalStateException("Should never be called with null value"); } return new FactoryMethods(tb, name, num); }
protected static FactoryMethods newInstance(TestBean tb, int num, String name) { if (name == null) { throw new IllegalStateException("Should never be called with null value"); } return new FactoryMethods(tb, name, num); }
public static FactoryMethods defaultInstance() { TestBean tb = new TestBean(); tb.setName("defaultInstance"); return new FactoryMethods(tb, "default", 0); }
public static FactoryMethods defaultInstance() { TestBean tb = new TestBean(); tb.setName("defaultInstance"); return new FactoryMethods(tb, "default", 0); }