|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sysunit.FactoryMethodTBeanFactory
public class FactoryMethodTBeanFactory
TBeanFactory implementation which uses a factory method
to construct TBeans.
This uses the Factory Method pattern to create TBean
instances. By using a no argument method that returns a TBean,
the TBeans can be consistently recreated in either a local
or distributed environment.
TBean| Field Summary |
|---|
| Fields inherited from interface org.sysunit.TBeanFactory |
|---|
EMPTY_ARRAY |
| Constructor Summary | |
|---|---|
FactoryMethodTBeanFactory(SystemTestCase testCase,
Method factoryMethod)
Construct. |
|
| Method Summary | |
|---|---|
Method |
getFactoryMethod()
Retrieve the TBean factory Method. |
SystemTestCase |
getTestCase()
Retrieve the SystemTestCase. |
TBean |
newTBean()
Create a new TBean. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FactoryMethodTBeanFactory(SystemTestCase testCase,
Method factoryMethod)
testCase - The test-case.factoryMethod - The TBean factory method.| Method Detail |
|---|
public SystemTestCase getTestCase()
SystemTestCase.
public Method getFactoryMethod()
TBean factory Method.
public TBean newTBean()
throws Exception
TBeanFactoryTBean.
newTBean in interface TBeanFactoryException - If an error occurs while attempting to
create the TBean.TBeanFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||