public abstract class FeatureChangeSubscriber extends Object implements javax.servlet.ServletContextListener
FeatureChangeNotifier
.
This basic implementation automatically subscribes to/unscubscribes from the FeatureChangeNotifier
if it is
registered as a ServletContextListener
Constructor and Description |
---|
FeatureChangeSubscriber() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) |
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent) |
boolean |
equals(Object obj) |
abstract String |
getFeatureToggleName()
Getter for the name of the feature that should be listened to.
|
abstract void |
handleFeatureToggleChange(org.togglz.core.repository.FeatureState newFeatureState)
Method that gets called if the feature identified by
getFeatureToggleName is activated/deactivated. |
int |
hashCode() |
public abstract String getFeatureToggleName()
public abstract void handleFeatureToggleChange(org.togglz.core.repository.FeatureState newFeatureState)
getFeatureToggleName
is activated/deactivated.newFeatureState
- Information on the actual toggled Feature
and the current toggle state.public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2018 SAP SE. All rights reserved.