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

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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy