public class ApplicationEventPublisherRepository extends Object implements StateRepository
StateRepository that publishes a FeatureStateChangedEvent when the
StateRepository.setFeatureState(FeatureState) method is called| Constructor and Description |
|---|
ApplicationEventPublisherRepository(StateRepository delegate,
org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
Creates a facade for the supplied
StateRepository. |
| Modifier and Type | Method and Description |
|---|---|
FeatureState |
getFeatureState(Feature feature) |
void |
setFeatureState(FeatureState featureState) |
public ApplicationEventPublisherRepository(StateRepository delegate, org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
StateRepository.delegate - The repository to delegate invocations toapplicationEventPublisher - The ApplicationEventPublisher to publish the FeatureStateChangedEvent topublic FeatureState getFeatureState(Feature feature)
getFeatureState in interface StateRepositorypublic void setFeatureState(FeatureState featureState)
setFeatureState in interface StateRepositoryCopyright © 2022. All rights reserved.