@Test(expected = IOException.class) public void unknown_resource() throws Exception { put("testing.*=unknown"); Map<String, String> conf = createConf(); declare(conf, "default", MockCommandScriptHandler.class); declare(conf, "other", MockCommandScriptHandler.class); CommandScriptHandlerDispatcher dispatcher = create(conf); ExecutionContext testing = context("testing"); dispatcher.getResourceId(testing, null); }
@Override public String getResourceId( ExecutionContext context, ExecutionScript script) throws InterruptedException, IOException { ExecutionScriptHandler<T> target = resolve(context, script); return target.getResourceId(context, script); }
ExecutionScriptHandlerDispatcher implements ExecutionScriptHandler<T> { @Override public String getResourceId( ExecutionContext context, ExecutionScript script) throws InterruptedException, IOException { ExecutionScriptHandler<T> target = resolve(context, script); return target.getResourceId(context, script); } }
ExecutionScriptHandlerDispatcher implements ExecutionScriptHandler<T> { @Override public String getResourceId( ExecutionContext context, ExecutionScript script) throws InterruptedException, IOException { ExecutionScriptHandler<T> target = resolve(context, script); return target.getResourceId(context, script); } protected  ExecutionScriptHandlerDispatcher(Class<? extends ExecutionScriptHandler<T>> handlerKind); }
ExecutionScriptHandlerDispatcher implements ExecutionScriptHandler<T> { @Override public String getResourceId( ExecutionContext context, ExecutionScript script) throws InterruptedException, IOException { ExecutionScriptHandler<T> target = resolve(context, script); return target.getResourceId(context, script); } protected  ExecutionScriptHandlerDispatcher(Class<? extends ExecutionScriptHandler<T>> handlerKind); @Override void configure(ServiceProfile<?> profile); @Override String getHandlerId(); @Override String getResourceId(
            ExecutionContext context,
            ExecutionScript script); @Override Map<String, String> getProperties(
            ExecutionContext context,
            ExecutionScript script); @Override Map<String, String> getEnvironmentVariables(
            ExecutionContext context,
            ExecutionScript script); @Override void setUp(ExecutionMonitor monitor, ExecutionContext context); @Override void execute(
            ExecutionMonitor monitor,
            ExecutionContext context,
            T script); @Override void cleanUp(ExecutionMonitor monitor, ExecutionContext context); }
ExecutionScriptHandlerDispatcher implements ExecutionScriptHandler<T> { @Override public String getResourceId( ExecutionContext context, ExecutionScript script) throws InterruptedException, IOException { ExecutionScriptHandler<T> target = resolve(context, script); return target.getResourceId(context, script); } protected  ExecutionScriptHandlerDispatcher(Class<? extends ExecutionScriptHandler<T>> handlerKind); @Override void configure(ServiceProfile<?> profile); @Override String getHandlerId(); @Override String getResourceId(
            ExecutionContext context,
            ExecutionScript script); @Override Map<String, String> getProperties(
            ExecutionContext context,
            ExecutionScript script); @Override Map<String, String> getEnvironmentVariables(
            ExecutionContext context,
            ExecutionScript script); @Override void setUp(ExecutionMonitor monitor, ExecutionContext context); @Override void execute(
            ExecutionMonitor monitor,
            ExecutionContext context,
            T script); @Override void cleanUp(ExecutionMonitor monitor, ExecutionContext context);  }