Class ComponentModule<T>
- java.lang.Object
-
- io.streamthoughts.azkarra.api.components.ComponentModule<T>
-
- All Implemented Interfaces:
ComponentFactoryAware
,ConfigurableComponentFactory
,Configurable
,Supplier<T>
- Direct Known Subclasses:
ComplexWordCountTopologyModule
public abstract class ComponentModule<T> extends Object implements ConfigurableComponentFactory, ComponentFactoryAware, Configurable, Supplier<T>
A configurable component supplier which has access to theComponentFactory
.
-
-
Constructor Summary
Constructors Constructor Description ComponentModule()
-
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
-
-