use of org.apache.ignite.plugin.PluginContext in project ignite by apache.
the class IgnitePluginProcessor method createComponent.
/**
* @param cls Component class.
* @param <T> Component type.
* @return Component class instance or {@code null} if no one plugin override this component.
*/
public <T> T createComponent(Class<T> cls) {
for (PluginProvider plugin : plugins.values()) {
PluginContext ctx = pluginContextForProvider(plugin);
T comp = (T) plugin.createComponent(ctx, cls);
if (comp != null)
return comp;
}
return null;
}
Aggregations