Class CommonsConfigurationLookupService<T extends org.apache.commons.configuration2.FileBasedConfiguration>

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.lookup.configuration2.CommonsConfigurationLookupService<T>
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.controller.ControllerService, LookupService<String>, StringLookupService
Direct Known Subclasses:
PropertiesFileLookupService, XMLFileLookupService

public abstract class CommonsConfigurationLookupService<T extends org.apache.commons.configuration2.FileBasedConfiguration> extends org.apache.nifi.controller.AbstractControllerService implements StringLookupService
This abstract class defines a generic LookupService backed by an Apache Commons Configuration FileBasedConfiguration.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.commons.configuration2.builder.ReloadingFileBasedConfigurationBuilder<T>
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    private static final String
     
    private List<org.apache.nifi.components.PropertyDescriptor>
     
    private static final Set<String>
     
    private final Class<T>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private org.apache.commons.configuration2.Configuration
     
     
    protected List<org.apache.nifi.components.PropertyDescriptor>
     
    protected void
    init(org.apache.nifi.controller.ControllerServiceInitializationContext context)
     
    lookup(Map<String,Object> coordinates)
     
    void
    onEnabled(org.apache.nifi.controller.ConfigurationContext context)
     

    Methods inherited from class org.apache.nifi.controller.AbstractControllerService

    abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, initialize, isEnabled

    Methods inherited from class org.apache.nifi.components.AbstractConfigurableComponent

    customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, 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

    getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate

    Methods inherited from interface org.apache.nifi.controller.ControllerService

    initialize, isStateful, migrateProperties

    Methods inherited from interface org.apache.nifi.lookup.LookupService

    lookup

    Methods inherited from interface org.apache.nifi.lookup.StringLookupService

    getValueType
  • Field Details

    • KEY

      private static final String KEY
      See Also:
    • REQUIRED_KEYS

      private static final Set<String> REQUIRED_KEYS
    • CONFIGURATION_FILE

      public static final org.apache.nifi.components.PropertyDescriptor CONFIGURATION_FILE
    • resultClass

      private final Class<T extends org.apache.commons.configuration2.FileBasedConfiguration> resultClass
    • properties

      private List<org.apache.nifi.components.PropertyDescriptor> properties
    • builder

      private volatile org.apache.commons.configuration2.builder.ReloadingFileBasedConfigurationBuilder<T extends org.apache.commons.configuration2.FileBasedConfiguration> builder
  • Constructor Details

    • CommonsConfigurationLookupService

      public CommonsConfigurationLookupService()
  • Method Details