public void init(IControllerContext context, Map<String, Object> attributes, ProcessingComponentConfiguration... configurations) { delegate.init(context, attributes, configurations); }
/** * Initializes this controller with the provided {@link Init}-time attributes and * additional component-specific {@link Init}-time attributes. {@link Init}-time * attributes can be overridden at processing time, see * {@link #process(Map, Class...)} or {@link #process(Map, Object...)}. * * @param attributes initialization-time attributes to be applied to all processing * components in this controller * @param configurations additional component-specific {@link Init}-time attributes * @return this controller for convenience */ public synchronized Controller init(Map<String, Object> attributes, ProcessingComponentConfiguration... configurations) throws ComponentInitializationException { checkClosed(); if (componentIdToConfiguration != null) { throw new IllegalStateException("This controller is already initialized."); } initAttributes = Collections.unmodifiableMap(Maps.newHashMap(attributes)); componentIdToConfiguration = ProcessingComponentConfiguration .indexByComponentId(configurations); componentManager.init(context, attributes, configurations); return this; }