|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.rode.thesis.abstractfactory.MemorizableAbstractionFactory<E>
E
- The type of values delivered by the created abstractions.@ParticipantUsage(value="ConcreteProduct", type=MemorizableSequenceAbstraction.class) @Participant(value="ConcreteFactory") public class MemorizableAbstractionFactory<E>
A memorizable abstraction factory creates
memorizable
sequence
abstractions.
This factory is thread-safe.
Implementation notes:
The factory method use a covariant return type since the
MemorizableSequenceAbstraction
class offers new
functionality compared to the SequenceAbstraction
class.
StandardAbstractionFactory
,
SynchronisedAbstractionFactory
,
PrototypicalAbstractionFactory
Constructor Summary | |
---|---|
MemorizableAbstractionFactory()
Constructor. |
Method Summary | |
---|---|
MemorizableSequenceAbstraction<E> |
createAbstraction()
Creates a new sequence abstraction instance. |
String |
toString()
Returns the string representation of this factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MemorizableAbstractionFactory()
Method Detail |
---|
public MemorizableSequenceAbstraction<E> createAbstraction()
AbstractionFactory
abstraction
instance.
Depending on the actual factory implementation, the returned abstraction
may be initialised
. If so, no
implementation need be set.
createAbstraction
in interface AbstractionFactory<E>
public String toString()
toString
in class Object
|
Gunni Rode / rode.dk | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |