Package org.apache.nifi.parameter
Class AbstractParameterProvider
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.parameter.AbstractParameterProvider
- All Implemented Interfaces:
ConfigurableComponent,ParameterProvider
public abstract class AbstractParameterProvider
extends AbstractConfigurableComponent
implements ParameterProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate ComponentLogprivate Stringprivate NodeTypeProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ComponentLogprotected StringgetName()protected final NodeTypeProviderprotected voidProvides a mechanism by which subclasses can perform initialization of the Parameter Provider before its parameters are fetchedfinal voidProvides the Parameter Provider with access to objects that may be of use throughout the life of the providerMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.parameter.ParameterProvider
fetchParameters
-
Field Details
-
identifier
-
name
-
logger
-
nodeTypeProvider
-
-
Constructor Details
-
AbstractParameterProvider
public AbstractParameterProvider()
-
-
Method Details
-
initialize
public final void initialize(ParameterProviderInitializationContext config) throws InitializationException Description copied from interface:ParameterProviderProvides the Parameter Provider with access to objects that may be of use throughout the life of the provider- Specified by:
initializein interfaceParameterProvider- Parameters:
config- of initialization context- Throws:
InitializationException- if unable to init
-
getIdentifier
- Specified by:
getIdentifierin interfaceConfigurableComponent- Returns:
- the identifier of this Parameter Provider
-
getNodeTypeProvider
- Returns:
- the
NodeTypeProviderthat was passed to theinitialize(ParameterProviderInitializationContext)method
-
getName
- Returns:
- the name of this Parameter Provider
-
getLogger
- Returns:
- the logger that has been provided to the component by the framework in its initialize method
-
init
Provides a mechanism by which subclasses can perform initialization of the Parameter Provider before its parameters are fetched- Parameters:
config- context- Throws:
InitializationException- if failure to init
-