Class CompositeStateRepository

java.lang.Object
org.togglz.core.repository.composite.CompositeStateRepository
All Implemented Interfaces:
StateRepository

public class CompositeStateRepository extends Object implements StateRepository
A StateRepository that is composed of one or more underlying repositories. For getFeatureState(Feature) this implementation returns the first non-null value from the underlying repositories, searched in the order specified during construction. The setFeatureState(FeatureState) method calls the corresponding method on the last underlying repository. If you don't want setFeatureState(FeatureState) to update a persistent repository, consider using an InMemoryStateRepository as the last argument. *