[
https://issues.apache.org/jira/browse/NIFI-9806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17508757#comment-17508757
]
ASF subversion and git services commented on NIFI-9806:
-------------------------------------------------------
Commit 193bcbe33a320699eb2c6c62a16072830422cab7 in nifi's branch
refs/heads/main from Bryan Bende
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=193bcbe ]
NIFI-9806 Introduce ConfigurableExtensionDefinition and
VersionedConfigurableExtension (#5875)
> Introduce base classes in c2/versioned that combine extension & configurable
> component types
> --------------------------------------------------------------------------------------------
>
> Key: NIFI-9806
> URL: https://issues.apache.org/jira/browse/NIFI-9806
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Priority: Major
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Currently we have the following setup in c2 component manifest model:
> _ExtensionComponent_ - base class where type and bundle info exist
> _ConfigurableComponentDefinition_ - interface for property related methods
> _ProcessorDefinition extends ExtensionComponent implements
> ConfigurableComponentDefinition_
> This makes it hard to write generic code for a configurable extension,
> meaning a component that has type/bundle info AND configurable properties.
> If you want to declare a generic type you have to do something like:
> _T extends ExtensionComponent & ConfigurableComponentDefinition_
> We can improve this by introducing an abstract class that extends
> ExtensionComponent and implements ConfigurableComponentDefintiion, then make
> the definitions for processor, controller service, and reporting task extend
> this new class.
> A similar scenario exists in the Versioned component model.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)