com.wavefront.agent.handlers.DelegatingReportableEntityHandlerFactoryImpl Maven / Gradle / Ivy
package com.wavefront.agent.handlers;
import javax.annotation.Nonnull;
/**
* Wrapper for {@link ReportableEntityHandlerFactory} to allow partial overrides for the {@code
* getHandler} method.
*
* @author [email protected]
*/
public class DelegatingReportableEntityHandlerFactoryImpl
implements ReportableEntityHandlerFactory {
protected final ReportableEntityHandlerFactory delegate;
public DelegatingReportableEntityHandlerFactoryImpl(ReportableEntityHandlerFactory delegate) {
this.delegate = delegate;
}
@Override
public ReportableEntityHandler getHandler(HandlerKey handlerKey) {
return delegate.getHandler(handlerKey);
}
@Override
public void shutdown(@Nonnull String handle) {
delegate.shutdown(handle);
}
}