Class BaseComponentModule
- java.lang.Object
-
- io.streamthoughts.azkarra.api.components.BaseComponentModule
-
- All Implemented Interfaces:
ComponentFactoryAware,ConfigurableComponentFactory,Configurable
- Direct Known Subclasses:
ComponentModule
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 voidconfigure(Conf configuration)Configures this instance with the specifiedConf.ComponentFactorygetComponentFactory()Gets the internalComponentFactory.ConfgetConfiguration()Gets the configuration used by this component factory.voidsetComponentFactory(ComponentFactory factory)Sets theComponentFactoryinstance..-
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 theComponentFactoryinstance..- Specified by:
setComponentFactoryin interfaceComponentFactoryAware- Parameters:
factory- theComponentFactoryinstance.
-
configure
public void configure(Conf configuration)
Configures this instance with the specifiedConf.- Specified by:
configurein interfaceConfigurable- Parameters:
configuration- theConfinstance used to configure this instance.
-
getComponentFactory
public ComponentFactory getComponentFactory()
Gets the internalComponentFactory.- Specified by:
getComponentFactoryin interfaceConfigurableComponentFactory- Returns:
- the
ComponentFactoryinstance to be used.
-
getConfiguration
public Conf getConfiguration()
Gets the configuration used by this component factory.- Specified by:
getConfigurationin interfaceConfigurableComponentFactory- Returns:
- the
Conf
-
-