Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 import java.util.Map;
Created with IntelliJ IDEA. User: mati Date: 21/06/2013 Time: 23:06 A default implementation, which delegates to a map Example usage (Java Config):

public CompileTimeGlobalModelResolver compileTimeGlobalModelResolver() { final Map<String,String> data = new HashMap<String,String>(); data.put("site.url", ""); final DefaultCompileTimeGlobalModelResolver resolver = new DefaultCompileTimeGlobalModelResolver(); resolver.setData(data); return resolver; }
    private Map data;
    public Optional<SoyMapDataresolveData() {
        if ( == null || .isEmpty()) {
            return Optional.absent();
        return Optional.of(new SoyMapData());
    public void setData(final Map data) {
        this. = data;
    public void setProperties(final Properties properties) {
         = new HashMap();
        for (String propertyName : properties.stringPropertyNames()) {
New to GrepCode? Check out our FAQ X