org.specrunner.context.core
Class ContextFactoryImpl

java.lang.Object
  extended by org.specrunner.context.core.ContextFactoryImpl
All Implemented Interfaces:
IContextFactory

public class ContextFactoryImpl
extends Object
implements IContextFactory

Default context factory implementation.

Author:
Thiago Santos

Constructor Summary
ContextFactoryImpl()
           
 
Method Summary
 IContext newContext(ISource source, IRunner runner)
          Creates a new context based on an source and a runner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextFactoryImpl

public ContextFactoryImpl()
Method Detail

newContext

public IContext newContext(ISource source,
                           IRunner runner)
                    throws ContextException
Description copied from interface: IContextFactory
Creates a new context based on an source and a runner.

Specified by:
newContext in interface IContextFactory
Parameters:
source - The source context.
runner - The context runner.
Returns:
A new context.
Throws:
ContextException - On creation errors.


Copyright © 2014. All rights reserved.