org.specrunner.result
Interface IWritableFactory<T>

Type Parameters:
T - The type of source to writable.
All Superinterfaces:
IResetable, Serializable

public interface IWritableFactory<T>
extends IResetable

Writable object factory.

Author:
Thiago Santos

Method Summary
 Class<T> getType()
          Get the type handled by this factory.
 IWritable newWritable(Map<String,Object> information, T source)
          Writable with information.
 IWritable newWritable(T source)
          Writable with information.
 
Methods inherited from interface org.specrunner.util.mapping.IResetable
initialize
 

Method Detail

getType

Class<T> getType()
Get the type handled by this factory.

Returns:
The source type.

newWritable

IWritable newWritable(T source)
Writable with information.

Parameters:
source - Source of information to writable objects.
Returns:
The information.

newWritable

IWritable newWritable(Map<String,Object> information,
                      T source)
Writable with information.

Parameters:
information - The information.
source - Source of information to writable objects.
Returns:
The information.


Copyright © 2014. All rights reserved.