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)