Evaluating Software Design Patterns
— the "Gang of Four" patterns implemented in Java 6

dk.rode.thesis.abstractfactory
Interface AbstractionFactory<E>

Type Parameters:
E - The type of values delivered by the created sequence abstractions.
All Known Implementing Classes:
MemorizableAbstractionFactory, PrototypicalAbstractionFactory, StandardAbstractionFactory, StandardFactory, SynchronisedAbstractionFactory

@ParticipantUsage(value="AbstractProduct",
                  type=SequenceAbstraction.class)
@Participant(value="AbstractFactory")
public interface AbstractionFactory<E>

A sequence abstraction factory can create sequence abstractions.

Depending on the actual factory implementation, the returned abstraction may be initialised. If so, no implementation need be set.

Implementation notes:
This interface essentially represents an application of a the Factory Method pattern.

Author:
Gunni Rode / rode.dk
See Also:
SequenceFactory, GeneratorFactory

Method Summary
 SequenceAbstraction<E> createAbstraction()
          Creates a new sequence abstraction instance.
 

Method Detail

createAbstraction

SequenceAbstraction<E> createAbstraction()
Creates a new sequence abstraction instance.

Depending on the actual factory implementation, the returned abstraction may be initialised. If so, no implementation need be set.

Returns:
A new sequence abstraction instance; never null.

Gunni Rode / rode.dk

Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!

The original thesis and source code are available at rode.dk/thesis.