org.sysunit
Class ThreadMethodTBeanFactory

java.lang.Object
  extended by org.sysunit.ThreadMethodTBeanFactory
All Implemented Interfaces:
TBeanFactory

public class ThreadMethodTBeanFactory
extends Object
implements TBeanFactory

TBeanFactory implementation which uses a static method to synthesize simple TBeans.

By using the body of the static method as the logic of the TBean, the ThreadMethodTBeanFactory creates ThreadMethodTBeans for execution. This allows simple TBean synthesizing without having to write actual TBean implementations.

Version:
$Id: ThreadMethodTBeanFactory.java,v 1.1 2003/06/04 04:27:20 werken Exp $
Author:
Bob McWhirter
See Also:
TBean, ThreadMethodTBean

Field Summary
 
Fields inherited from interface org.sysunit.TBeanFactory
EMPTY_ARRAY
 
Constructor Summary
ThreadMethodTBeanFactory(SystemTestCase testCase, Method threadMethod)
          Construct.
 
Method Summary
 SystemTestCase getTestCase()
          Retrieve the SystemTestCase.
 Method getThreadMethod()
          Retrieve the static thread body Method.
 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

ThreadMethodTBeanFactory

public ThreadMethodTBeanFactory(SystemTestCase testCase,
                                Method threadMethod)
Construct.

Parameters:
testCase - The test-case.
threadMethod - Static TBean thread body method.
Method Detail

getTestCase

public SystemTestCase getTestCase()
Retrieve the SystemTestCase.

Returns:
The test-case.

getThreadMethod

public Method getThreadMethod()
Retrieve the static thread body Method.

Returns:
The thread body method.

newTBean

public TBean newTBean()
               throws Exception
Description copied from interface: TBeanFactory
Create a new TBean.

Specified by:
newTBean in interface TBeanFactory
Returns:
The newly created TBean.
Throws:
Exception - If an error occurs while attempting to create the TBean.
See Also:
TBeanFactory


Copyright © 2003-2009 SpritSoft, Inc.. All Rights Reserved.