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

dk.rode.thesis.abstractfactory
Interface SequenceFactory<E,P>

Type Parameters:
E - The type of values delivered by the created sequences.
P - The type of argument required in the creation process of sequences. Use Void if no arguments are required.
All Known Implementing Classes:
PrototypicalSequenceFactory, StandardFactory

@Participant(value="AbstractFactory")
public interface SequenceFactory<E,P>

A sequence factory provides a general creation method to create initialised sequences in a single step.

The type of created sequences and the arguments used in the creation process is specific to the implementation.

Author:
Gunni Rode / rode.dk

Method Summary
 Sequence<E> createSequence(P argument)
          Creates a new initialised sequence instance.
 

Method Detail

createSequence

Sequence<E> createSequence(P argument)
Creates a new initialised sequence instance.

Parameters:
argument - A context supplied argument to use in creation process, if any.
Returns:
A new sequence 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.