|
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.Objectdk.rode.thesis.abstractfactory.SynchronisedAbstractionFactory<E>
E - The type of values delivered by the created abstractions.@ParticipantUsage(value="ConcreteProduct",
type=SynchronisedSequenceAbstraction.class)
@Participant(value="ConcreteFactory")
public class SynchronisedAbstractionFactory<E>
A synchronised abstraction factory creates
synchronised sequence
abstractions.
This factory is thread-safe.
Implementation notes:
The factory method does not use a covariant return type since the
SynchronisedSequenceAbstraction class offers no new
functionality compared to the SequenceAbstraction class.
StandardAbstractionFactory,
MemorizableAbstractionFactory,
PrototypicalAbstractionFactory| Constructor Summary | |
|---|---|
SynchronisedAbstractionFactory()
Constructor. |
|
| Method Summary | |
|---|---|
SequenceAbstraction<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 SynchronisedAbstractionFactory()
| Method Detail |
|---|
public SequenceAbstraction<E> createAbstraction()
AbstractionFactoryabstraction 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 | ||||||||