Search in sources :

Example 1 with ConfigurableComponentInitializer

use of org.apache.nifi.init.ConfigurableComponentInitializer in project nifi by apache.

the class ExtensionManager method initializeTempComponent.

private static void initializeTempComponent(final ConfigurableComponent configurableComponent) {
    ConfigurableComponentInitializer initializer = null;
    try {
        initializer = ConfigurableComponentInitializerFactory.createComponentInitializer(configurableComponent.getClass());
        initializer.initialize(configurableComponent);
    } catch (final InitializationException e) {
        logger.warn(String.format("Unable to initialize component %s due to %s", configurableComponent.getClass().getName(), e.getMessage()));
    }
}
Also used : InitializationException(org.apache.nifi.reporting.InitializationException) ConfigurableComponentInitializer(org.apache.nifi.init.ConfigurableComponentInitializer)

Example 2 with ConfigurableComponentInitializer

use of org.apache.nifi.init.ConfigurableComponentInitializer in project nifi-minifi by apache.

the class ExtensionManager method initializeTempComponent.

private static void initializeTempComponent(final ConfigurableComponent configurableComponent) {
    ConfigurableComponentInitializer initializer = null;
    try {
        initializer = ConfigurableComponentInitializerFactory.createComponentInitializer(configurableComponent.getClass());
        initializer.initialize(configurableComponent);
    } catch (final InitializationException e) {
        logger.warn(String.format("Unable to initialize component %s due to %s", configurableComponent.getClass().getName(), e.getMessage()));
    }
}
Also used : InitializationException(org.apache.nifi.reporting.InitializationException) ConfigurableComponentInitializer(org.apache.nifi.init.ConfigurableComponentInitializer)

Aggregations

ConfigurableComponentInitializer (org.apache.nifi.init.ConfigurableComponentInitializer)2 InitializationException (org.apache.nifi.reporting.InitializationException)2