com.netflix.archaius.AbstractProperty Maven / Gradle / Ivy
package com.netflix.archaius;
import com.netflix.archaius.api.Property;
import com.netflix.archaius.api.PropertyListener;
public abstract class AbstractProperty implements Property {
private final String key;
public AbstractProperty(String key) {
this.key = key;
}
@Override
public void addListener(PropertyListener listener) {
throw new UnsupportedOperationException();
}
@Override
public void removeListener(PropertyListener listener) {
throw new UnsupportedOperationException();
}
@Override
public String getKey() {
return key;
}
}