Adding Functionality to Apache NiFi
Also available as:
loading table of contents...


The @OnAdded annotation causes a method to be invoked as soon as a component is created. The component's initialize method (or init method, if subclasses AbstractProcessor) will be invoked after the component is constructed, followed by methods that are annotated with @OnAdded. If any method annotated with @OnAdded throws an Exception, an error will be returned to the user, and that component will not be added to the flow. Furthermore, other methods with this Annotation will not be invoked. This method will be called only once for the lifetime of a component. Methods with this Annotation must take zero arguments.