Interface StateHandlerFactory
-
- All Known Implementing Classes:
ConcreteStateHandlerFactory
public interface StateHandlerFactory
StateHandlerFactory describes a factory for the creation of StateHandler implementations.
-
-
Field Summary
Fields Modifier and Type Field Description static StateHandlerFactory
INSTANCE
is the singleton instance of the concrete StateHandlerFactory.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StateHandler
createFor(VariationPoint object)
creates and returns the StateHandler implementation corresponding to the VariationPoint.
-
-
-
Field Detail
-
INSTANCE
static final StateHandlerFactory INSTANCE
is the singleton instance of the concrete StateHandlerFactory.
-
-
Method Detail
-
createFor
StateHandler createFor(VariationPoint object)
creates and returns the StateHandler implementation corresponding to the VariationPoint.- Parameters:
object
- the current VariationPoint- Returns:
- the created StateHandler implementation
- Throws:
IllegalStateException
- if no StateHandlerImplementation can be created
-
-