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 String
private ComponentLog
private String
private NodeTypeProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ComponentLog
protected String
getName()
protected final NodeTypeProvider
protected void
Provides a mechanism by which subclasses can perform initialization of the Parameter Provider before its parameters are fetchedfinal void
Provides 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, validate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
Methods 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:ParameterProvider
Provides the Parameter Provider with access to objects that may be of use throughout the life of the provider- Specified by:
initialize
in interfaceParameterProvider
- Parameters:
config
- of initialization context- Throws:
InitializationException
- if unable to init
-
getIdentifier
- Specified by:
getIdentifier
in interfaceConfigurableComponent
- Returns:
- the identifier of this Parameter Provider
-
getNodeTypeProvider
- Returns:
- the
NodeTypeProvider
that 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
-