net.sf.doolin.gui.util
Class PreferencesDataFactory<T extends Memento>

java.lang.Object
  extended by net.sf.doolin.gui.util.PreferencesDataFactory<T>
Type Parameters:
T - Type of the object to read
All Implemented Interfaces:
DataFactory<T>

public class PreferencesDataFactory<T extends Memento>
extends Object
implements DataFactory<T>

Data factory that reads its created object from the preferences after having instantiating it using another factory.

Author:
Damien Coraboeuf

Constructor Summary
PreferencesDataFactory(DataFactory<T> initialFactory)
          Constructor
 
Method Summary
 T create(Object context)
          Creates an arbitrary object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferencesDataFactory

public PreferencesDataFactory(DataFactory<T> initialFactory)
Constructor

Parameters:
initialFactory - Factory to create the initial object
Method Detail

create

public T create(Object context)
Description copied from interface: DataFactory
Creates an arbitrary object.

Specified by:
create in interface DataFactory<T extends Memento>
Parameters:
context - Context of creation
Returns:
Created object.


Copyright © 2011. All Rights Reserved.