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 Specification
s.
- Since:
- 0.4
- Author:
- Eirik Torske
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.