Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
ResponseValidator<?, ?, ?> com.griddynamics.jagger.engine.e1.collector.DefaultResponseValidatorProvider.provide ( String  sessionId,
String  taskId,
NodeContext  kernelContext 
)

Definition at line 29 of file DefaultResponseValidatorProvider.java.

29  {
30  try {
31  Constructor<? extends ResponseValidator> constructor = clazz.getConstructor(String.class, String.class, NodeContext.class);
32  return constructor.newInstance(taskId, sessionId, kernelContext);
33  } catch (NoSuchMethodException e) {
34  throw new RuntimeException(e);
35  } catch (InvocationTargetException e) {
36  throw new RuntimeException(e);
37  } catch (InstantiationException e) {
38  throw new RuntimeException(e);
39  } catch (IllegalAccessException e) {
40  throw new RuntimeException(e);
41  }
42  }