Package org.togglz.spring.repository
Class ApplicationEventPublisherRepository
java.lang.Object
org.togglz.spring.repository.ApplicationEventPublisherRepository
- All Implemented Interfaces:
StateRepository
Implementation of
StateRepository that publishes a FeatureStateChangedEvent when the
StateRepository.setFeatureState(FeatureState) method is called- Author:
- Igor Khudoshin
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationEventPublisherRepository(StateRepository delegate, org.springframework.context.ApplicationEventPublisher applicationEventPublisher) Creates a facade for the suppliedStateRepository. -
Method Summary
Modifier and TypeMethodDescriptiongetFeatureState(Feature feature) voidsetFeatureState(FeatureState featureState)
-
Constructor Details
-
ApplicationEventPublisherRepository
public ApplicationEventPublisherRepository(StateRepository delegate, org.springframework.context.ApplicationEventPublisher applicationEventPublisher) Creates a facade for the suppliedStateRepository.- Parameters:
delegate- The repository to delegate invocations toapplicationEventPublisher- TheApplicationEventPublisherto publish theFeatureStateChangedEventto
-
-
Method Details
-
getFeatureState
- Specified by:
getFeatureStatein interfaceStateRepository
-
setFeatureState
- Specified by:
setFeatureStatein interfaceStateRepository
-