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

play.modules.constretto.PlayIdConfigurationContextResolver Maven / Gradle / Ivy

The newest version!
package play.modules.constretto;

import com.google.common.collect.Lists;
import org.constretto.resolver.ConfigurationContextResolver;
import play.Play;

import java.util.List;

/**
 * Constretto ConfigurationContextResolver implementation that use Play's "id" as tag.
 */
public class PlayIdConfigurationContextResolver implements ConfigurationContextResolver {
    @Override
    public List getTags() {
        String tag = Play.id;
        if (tag == null) {
            tag = "";
        }
        return Lists.newArrayList(tag);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy