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

brooklyn.event.basic.SubElementConfigKey Maven / Gradle / Ivy

There is a newer version: 0.7.0-M1
Show newest version
package brooklyn.event.basic;

import java.util.Map;

import brooklyn.config.ConfigKey;
import brooklyn.management.ExecutionContext;

@SuppressWarnings("rawtypes")
public class SubElementConfigKey extends BasicConfigKey {
    
    private static final long serialVersionUID = -1587240876351450665L;
    
    public final ConfigKey parent;

    public SubElementConfigKey(ConfigKey parent, Class type, String name) {
        this(parent, type, name, name, null);
    }
    public SubElementConfigKey(ConfigKey parent, Class type, String name, String description) {
        this(parent, type, name, description, null);
    }
    public SubElementConfigKey(ConfigKey parent, Class type, String name, String description, T defaultValue) {
        super(type, name, description, defaultValue);
        this.parent = parent;
    }
    
    @Override
    public T extractValue(Map vals, ExecutionContext exec) {
        return super.extractValue(vals, exec);
    }
    
    @Override
    public boolean isSet(Map vals) {
        return super.isSet(vals);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy