|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.domian.factory.StrictReturnsNullFactory<T>
public final class StrictReturnsNullFactory<T>
Generic factory class creating objects based on Specification
s.
null
rather than a possible imperfect object.
If the specification contains ambiguous data, or is somehow missing data, the factory will not construct any object.
Returns null object creation strategy means that the factory will silently return null
when the first show-stopping obstacle occurs.
Constructor Summary | |
---|---|
StrictReturnsNullFactory()
|
Method Summary | |
---|---|
T |
create(Specification specification)
Alias of createObjectSpecifiedBy() . |
T |
createObjectSpecifiedBy(Specification specification)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StrictReturnsNullFactory()
Method Detail |
---|
public T createObjectSpecifiedBy(Specification specification)
createObjectSpecifiedBy
in interface Factory
Specification
; otherwise further events is based on factory implementation strategypublic T create(Specification specification)
Factory
createObjectSpecifiedBy()
.
create
in interface Factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |