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

com.wavefront.agent.handlers.DelegatingReportableEntityHandlerFactoryImpl Maven / Gradle / Ivy

There is a newer version: 13.4
Show newest version
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