Java API ReferenceClass Hierarchy | All Classes | All Fields and Methods

com.ibm.xtools.patterns.framework

Class AbstractPatternStoreFactory

+-- Object
      +-- AbstractPatternStoreFactory

abstract public Class AbstractPatternStoreFactory
extends Object

Represents the abstract factory in an instance of the abstract factory pattern.

The concrete products are the various types of persistent stores such as the pattern definition and pattern instance stores. The abstract products are defined by the abstract pattern definition store and the abstract pattern instance store classes.


Constructor summary
AbstractPatternStoreFactory()

The default constructor provided automatically by the compiler.

Method summary
AbstractPatternStore.DefinitioncreatePatternDefinitionStore()

Represents one concrete product in this instantiation of the abstract factory pattern.

AbstractPatternStore.InstancecreatePatternInstanceStore()

Represents another concrete product in this instantiation of the abstract factory pattern.

Constructor detail

AbstractPatternStoreFactory

public AbstractPatternStoreFactory()

The default constructor provided automatically by the compiler.

This class contains no constructor declarations, then a default constructor that takes no parameters is automatically provided by the compiler.

Method detail

createPatternDefinitionStore

abstract public AbstractPatternStore.Definition createPatternDefinitionStore()

Represents one concrete product in this instantiation of the abstract factory pattern.

The method creates a pattern definition store that is based on the concrete factory used.

Returns:

A pattern definition store to use.

createPatternInstanceStore

abstract public AbstractPatternStore.Instance createPatternInstanceStore()

Represents another concrete product in this instantiation of the abstract factory pattern.

The method creates a pattern instance store that is based on the concrete factory used. This pattern instance store is compatible with all other concrete products, including the pattern definition store returned back from that particular method.

Returns:

A pattern instance store to use.


Feedback