206207208209210211212213
public void installAction(String type) { if (this.pipeline == null) { throw new IllegalStateException("Action cannot be installed without having a pipeline."); } Action action = this.componentProvider.createAction(type); this.actions.add(action); }
3940414243444546474849
if (actionClass == null) { throw new IllegalArgumentException("Action type '" + type + "' is not supported."); } try { Action action = actionClass.newInstance(); return action; } catch (Exception e) { throw new IllegalArgumentException("An action of type '" + type + "' could not be created.", e); } }
200201202203204205206207