de.bechte.junit.runners.context.statements.builder
Class StatementBuilderFactory

java.lang.Object
  extended by de.bechte.junit.runners.context.statements.builder.StatementBuilderFactory
Direct Known Subclasses:
DefaultStatementBuilderFactory

public abstract class StatementBuilderFactory
extends Object

The StatementBuilderFactory resolves a List of ClassStatementBuilders for classes and MethodStatementBuilders for methods. These two types might differ, as they require different processing. Note: Clients can register their own factory by setting the system property with key PROPERTY_KEY. This property must contain a name of the implementation class, e.g. "com.you.factories.MyStatementBuilderFactory". If no property is set the DefaultStatementBuilderFactory will be used instead.


Field Summary
protected static String PROPERTY_KEY
           
 
Constructor Summary
protected StatementBuilderFactory()
           
 
Method Summary
abstract  List<ClassStatementBuilder> getBuildersForClasses()
           
abstract  List<MethodStatementBuilder> getBuildersForMethods()
           
static StatementBuilderFactory getDefault()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_KEY

protected static final String PROPERTY_KEY
Constructor Detail

StatementBuilderFactory

protected StatementBuilderFactory()
Method Detail

getDefault

public static StatementBuilderFactory getDefault()

getBuildersForClasses

public abstract List<ClassStatementBuilder> getBuildersForClasses()

getBuildersForMethods

public abstract List<MethodStatementBuilder> getBuildersForMethods()


Copyright © 2015. All rights reserved.