@Documented @Target(value=METHOD) @Retention(value=RUNTIME) @Inherited public @interface OnAdded
Marker annotation a Processor
,
ControllerService
, or
ReportingTask
implementation
can use to indicate a method should be called whenever the component is added
to the flow. This method will be called once for the entire life of a
component instance.
Methods with this annotation are called without any arguments, as all settings and properties can be assumed to be the defaults.
If any method annotated with this annotation throws a Throwable, the component will not be added to the flow.
Copyright © 2015 Apache NiFi Project. All rights reserved.