You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Bryan Bende (JIRA)" <ji...@apache.org> on 2018/09/18 13:43:00 UTC

[jira] [Created] (NIFIREG-199) Interfaces for components that supports properties and bundles

Bryan Bende created NIFIREG-199:
-----------------------------------

             Summary: 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.2.0, 0.1.0
            Reporter: Bryan Bende
            Assignee: Bryan Bende


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)