You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/03/18 12:44:00 UTC
[jira] [Commented] (NIFI-9806) Introduce base classes in c2/versioned that combine extension & configurable component types
[ 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)