Github user ijokarumawak commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/575#discussion_r70840662
  
    --- Diff: 
nifi-api/src/main/java/org/apache/nifi/components/ValidationContext.java ---
    @@ -99,4 +100,9 @@
          * @return the identifier of the ProcessGroup that the component being 
validated lives in
          */
         String getProcessGroupIdentifier();
    +
    +    /**
    +     * @return the {@link NodeTypeProvider} which can be used to detect 
the node type of this NiFi instance.
    +     */
    +    NodeTypeProvider getNodeTypeProvider();
    --- End diff --
    
    Agreed. I was thinking it'd be too much. Exposing primary state was not 
what I wanted, though.. Processor's property descriptors and validators are 
often defined in static scope, and I thought if ValidationContext provides 
cluster or not, it's useful.
    
    I'll remove this.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to