public boolean needsReload() {
return false;
}
public void init(Configuration configuration) throws ConfigurationException {
PackageConfig wait = new PackageConfig("");
Map results = new HashMap();
results.put(Action.SUCCESS, new ResultConfig(Action.SUCCESS, MockResult.class.getName(), null));
results.put(ExecuteAndWaitInterceptor.WAIT, new ResultConfig(ExecuteAndWaitInterceptor.WAIT, MockResult.class.getName(), null));
// interceptors
waitInterceptor = new ExecuteAndWaitInterceptor();
List interceptors = new ArrayList();
interceptors.add(new InterceptorMapping("params", new ParametersInterceptor()));
interceptors.add(new InterceptorMapping("execAndWait", waitInterceptor));
ActionConfig ac = new ActionConfig(null, ExecuteAndWaitDelayAction.class, null, results, interceptors);
wait.addActionConfig("action1", ac);
configuration.addPackageConfig("", wait);
}