blob: 4e38cd9cc425202d94bcf7a58044991dfb1ca157 [file] [log] [blame]
package brooklyn.event.basic;
import java.util.Map;
import brooklyn.config.ConfigKey;
import brooklyn.management.ExecutionContext;
@SuppressWarnings("rawtypes")
public class SubElementConfigKey<T> extends BasicConfigKey<T> {
private static final long serialVersionUID = -1587240876351450665L;
public final ConfigKey parent;
public SubElementConfigKey(ConfigKey parent, Class<T> type, String name) {
this(parent, type, name, name, null);
}
public SubElementConfigKey(ConfigKey parent, Class<T> type, String name, String description) {
this(parent, type, name, description, null);
}
public SubElementConfigKey(ConfigKey parent, Class<T> 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);
}
}