Annotation Interface OnConfigurationRestored


@Documented @Target(METHOD) @Retention(RUNTIME) @Inherited public @interface OnConfigurationRestored

Marker Annotation that a Processor, Reporting Task, or Controller Service can use to indicate that the method with this Annotation should be invoked whenever the component's configuration is restored after a restart of NiFi.

Methods with this annotation are permitted to take no arguments or to take a single argument. If using a single argument, that argument must be of type ConfigurationContext if the component is a ReportingTask or a ControllerService. If the component is a Processor, then the argument must be of type ProcessContext.

Whenever a new component is added to the flow, this method will be called immediately, since there is no configuration to restore (in this case all configuration has already been restored, since there is no configuration to restore).

Since:
0.5.0