com.netflix.archaius.DelegatingProperty Maven / Gradle / Ivy
The newest version!
package com.netflix.archaius;
import com.netflix.archaius.api.Property;
import com.netflix.archaius.api.PropertyListener;
/**
* Base class for Property implementations that delegate to another Property.
* @deprecated There are no known implementations of this class. To be removed by the end of 2025
*/
@Deprecated
// TODO Remove by the end of 2025
public abstract class DelegatingProperty implements Property {
protected Property delegate;
public DelegatingProperty(Property delegate) {
this.delegate = delegate;
}
@Override
public void addListener(PropertyListener listener) {
delegate.addListener(listener);
}
@Override
public void removeListener(PropertyListener listener) {
delegate.removeListener(listener);
}
@Override
public String getKey() {
return delegate.getKey();
}
}