Search in sources :

Example 1 with DynamicProperties

use of org.apache.nifi.annotation.behavior.DynamicProperties in project nifi by apache.

the class HtmlDocumentationWriter method getDynamicProperties.

private List<DynamicProperty> getDynamicProperties(ConfigurableComponent configurableComponent) {
    final List<DynamicProperty> dynamicProperties = new ArrayList<>();
    final DynamicProperties dynProps = configurableComponent.getClass().getAnnotation(DynamicProperties.class);
    if (dynProps != null) {
        for (final DynamicProperty dynProp : dynProps.value()) {
            dynamicProperties.add(dynProp);
        }
    }
    final DynamicProperty dynProp = configurableComponent.getClass().getAnnotation(DynamicProperty.class);
    if (dynProp != null) {
        dynamicProperties.add(dynProp);
    }
    return dynamicProperties;
}
Also used : DynamicProperty(org.apache.nifi.annotation.behavior.DynamicProperty) ArrayList(java.util.ArrayList) DynamicProperties(org.apache.nifi.annotation.behavior.DynamicProperties)

Aggregations

ArrayList (java.util.ArrayList)1 DynamicProperties (org.apache.nifi.annotation.behavior.DynamicProperties)1 DynamicProperty (org.apache.nifi.annotation.behavior.DynamicProperty)1