Class BaseComponentModule
- java.lang.Object
-
- io.streamthoughts.azkarra.api.components.BaseComponentModule
-
- All Implemented Interfaces:
ComponentFactoryAware
,ConfigurableComponentFactory
,Configurable
- Direct Known Subclasses:
AutoCreateTopicsInterceptor
,ComponentModule
,ConditionalStreamsApplication.NormalizeStreamsTopology
,MeterKafkaStreamsInterceptor
,MeterRegistryFactory
public abstract class BaseComponentModule extends Object implements ConfigurableComponentFactory, ComponentFactoryAware, Configurable
An abstract base class that can be extended to supply configurable components.
-
-
Constructor Summary
Constructors Constructor Description BaseComponentModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Conf configuration)
Configures this instance with the specifiedConf
.ComponentFactory
getComponentFactory()
Gets the internalComponentFactory
.Conf
getConfiguration()
Gets the configuration used by this component factory.void
setComponentFactory(ComponentFactory factory)
Sets theComponentFactory
instance..-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.streamthoughts.azkarra.api.components.ConfigurableComponentFactory
getAllComponents, getAllComponents, getAllComponents, getAllComponents, getComponent, getComponent, getComponent, getComponent
-
-
-
-
Method Detail
-
setComponentFactory
public void setComponentFactory(ComponentFactory factory)
Sets theComponentFactory
instance..- Specified by:
setComponentFactory
in interfaceComponentFactoryAware
- Parameters:
factory
- theComponentFactory
instance.
-
configure
public void configure(Conf configuration)
Configures this instance with the specifiedConf
.- Specified by:
configure
in interfaceConfigurable
- Parameters:
configuration
- theConf
instance used to configure this instance.
-
getComponentFactory
public ComponentFactory getComponentFactory()
Gets the internalComponentFactory
.- Specified by:
getComponentFactory
in interfaceConfigurableComponentFactory
- Returns:
- the
ComponentFactory
instance to be used.
-
getConfiguration
public Conf getConfiguration()
Gets the configuration used by this component factory.- Specified by:
getConfiguration
in interfaceConfigurableComponentFactory
- Returns:
- the
Conf
-
-