Package com.wavefront.agent.handlers
Class DelegatingReportableEntityHandlerFactoryImpl
- java.lang.Object
-
- com.wavefront.agent.handlers.DelegatingReportableEntityHandlerFactoryImpl
-
- All Implemented Interfaces:
ReportableEntityHandlerFactory
public class DelegatingReportableEntityHandlerFactoryImpl extends Object implements ReportableEntityHandlerFactory
Wrapper forReportableEntityHandlerFactory
to allow partial overrides for thegetHandler
method.- Author:
- [email protected]
-
-
Field Summary
Fields Modifier and Type Field Description protected ReportableEntityHandlerFactory
delegate
-
Constructor Summary
Constructors Constructor Description DelegatingReportableEntityHandlerFactoryImpl(ReportableEntityHandlerFactory delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,U>
ReportableEntityHandler<T,U>getHandler(HandlerKey handlerKey)
Create, or return existing,ReportableEntityHandler
.void
shutdown(String handle)
Shutdown pipeline for a specific handle.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.wavefront.agent.handlers.ReportableEntityHandlerFactory
getHandler
-
-
-
-
Field Detail
-
delegate
protected final ReportableEntityHandlerFactory delegate
-
-
Constructor Detail
-
DelegatingReportableEntityHandlerFactoryImpl
public DelegatingReportableEntityHandlerFactoryImpl(ReportableEntityHandlerFactory delegate)
-
-
Method Detail
-
getHandler
public <T,U> ReportableEntityHandler<T,U> getHandler(HandlerKey handlerKey)
Description copied from interface:ReportableEntityHandlerFactory
Create, or return existing,ReportableEntityHandler
.- Specified by:
getHandler
in interfaceReportableEntityHandlerFactory
- Parameters:
handlerKey
- unique identifier for the handler.- Returns:
- new or existing handler.
-
shutdown
public void shutdown(@Nonnull String handle)
Description copied from interface:ReportableEntityHandlerFactory
Shutdown pipeline for a specific handle.- Specified by:
shutdown
in interfaceReportableEntityHandlerFactory
-
-