[
https://issues.apache.org/jira/browse/NIFIREG-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16619152#comment-16619152
]
ASF GitHub Bot commented on NIFIREG-199:
----------------------------------------
GitHub user bbende opened a pull request:
https://github.com/apache/nifi-registry/pull/140
NIFIREG-199 - Adding interfaces to represent configurable components …
…and extension components
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bbende/nifi-registry NIFIREG-199
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi-registry/pull/140.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #140
----
commit e2984d09327f28288f040fe6bdc4c185f968754d
Author: Bryan Bende <bbende@...>
Date: 2018-09-18T13:53:40Z
NIFIREG-199 - Adding interfaces to represent configurable components and
extension components
----
> Interfaces for components that supports properties and bundles
> --------------------------------------------------------------
>
> Key: NIFIREG-199
> URL: https://issues.apache.org/jira/browse/NIFIREG-199
> Project: NiFi Registry
> Issue Type: Improvement
> Affects Versions: 0.1.0, 0.2.0
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Priority: Minor
>
> Currently VersionedProcessor and VersionedControllerService both have maps of
> VersionedPropertyDescritpors, and also both have a Bundle and Type, but there
> isn't a common base class or interface between them, so a consumer of the
> data model can't write general code that operates on them the same.
> I would propose creating two interfaces that VersionedProcessor and
> VersionedControllerService would implement...
> 1) VersionedConfigurableComponent
> {code:java}
> Map<String,VersionedPropertyDescriptor> getPropertyDescriptors()
> void setPropertyDescriptors(Map<String,VersionedPropertyDescriptor>
> propertyDescriptors)
> Map<String,String> getProperties()
> void setProperties(Map<String,String> properties){code}
> 2) VersionedExtensionComponent
> {code:java}
> Bundle getBundle()
> void setBundle(Bundle bundle)
> String getType()
> void setType(String type){code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)