org.specrunner.context.core
Class BlockFactoryImpl

java.lang.Object
  extended by org.specrunner.context.core.BlockFactoryImpl
All Implemented Interfaces:
IBlockFactory

public class BlockFactoryImpl
extends Object
implements IBlockFactory

Default block factory implementation.

Author:
Thiago Santos

Constructor Summary
BlockFactoryImpl()
           
 
Method Summary
 IBlock newBlock(nu.xom.Node element, IPlugin plugin)
          Creates a new block.
 IBlock newBlock(nu.xom.Node element, IPlugin plugin, Map<String,Object> map)
          Create a new block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockFactoryImpl

public BlockFactoryImpl()
Method Detail

newBlock

public IBlock newBlock(nu.xom.Node element,
                       IPlugin plugin)
Description copied from interface: IBlockFactory
Creates a new block.

Specified by:
newBlock in interface IBlockFactory
Parameters:
element - A node.
plugin - A plugin.
Returns:
A new block.

newBlock

public IBlock newBlock(nu.xom.Node element,
                       IPlugin plugin,
                       Map<String,Object> map)
Description copied from interface: IBlockFactory
Create a new block.

Specified by:
newBlock in interface IBlockFactory
Parameters:
element - A node.
plugin - A plugin.
map - An object mapping.
Returns:
A new block.


Copyright © 2014. All rights reserved.