All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.otto.edison.togglz.DefaultTogglzConfig Maven / Gradle / Ivy

There is a newer version: 3.3.3
Show newest version
package de.otto.edison.togglz;

import org.togglz.core.Feature;
import org.togglz.core.manager.TogglzConfig;
import org.togglz.core.repository.StateRepository;
import org.togglz.core.user.UserProvider;

public class DefaultTogglzConfig implements TogglzConfig {

    private final StateRepository stateRepository;
    private final UserProvider userProvider;
    private final FeatureClassProvider featureClassProvider;

    public DefaultTogglzConfig(final StateRepository stateRepository,
                               final UserProvider userProvider,
                               final FeatureClassProvider featureClassProvider) {
        this.stateRepository = stateRepository;
        this.userProvider = userProvider;
        this.featureClassProvider = featureClassProvider;
    }

    @Override
    public Class getFeatureClass() {
        return featureClassProvider.getFeatureClass();
    }

    @Override
    public StateRepository getStateRepository() {
        return stateRepository;
    }

    @Override
    public UserProvider getUserProvider() {
       return userProvider;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy