net.sourceforge.domian.factory
Interface Factory<T>

All Known Implementing Classes:
StrictReturnsNullFactory

public interface Factory<T>

Interface describing a factory for creating objects based on Specifications.

Since:
0.4
Author:
Eirik Torske

Method Summary
 T create(Specification<T> specification)
          Alias of createObjectSpecifiedBy().
 T createObjectSpecifiedBy(Specification<T> specification)
           
 

Method Detail

createObjectSpecifiedBy

T createObjectSpecifiedBy(Specification<T> specification)
Returns:
an instance of type T, specified by given Specification; otherwise further events is based on factory implementation strategy

create

T create(Specification<T> specification)
Alias of createObjectSpecifiedBy().



Copyright © 2006-2010. All Rights Reserved.