private static int getFactoryType(Object factory) { int type = 0; if (factory instanceof RuntimeToolSetFactory) { type |= RUNTIME_TOOL_SET_FACTORY; if (factory instanceof ToolFactory) { type |= TOOL_FACTORY; } return type; } if (factory instanceof ToolFactory) { type |= TOOL_FACTORY; if (((ToolFactory) factory).isSingleton()) { type |= SINGLETON; } } if (factory instanceof ToolSetFactory) { type |= TOOL_SET_FACTORY; if (((ToolSetFactory) factory).isSingleton()) { type |= SINGLETON; } } assertTrue(type != 0, "unknown pull tool factory type: %s", factory == null ? null : factory.getClass() .getName()); return type; }
Iterable<String> names = ((ToolSetFactory) factory).getToolNames(); tool = encode(((ToolSetFactory) factory).createTool(nameInSet)); } catch (Exception ex) { throw new PullException("Could not create tool: \"" + name + "." + nameInSet Iterable<String> names = ((ToolSetFactory) factory).getToolNames();
tool = toolSetInfo.getFactory().createTool(name); } catch (Exception ex) { throw new PullException("Could not create tool: \"" + toolSetInfo.getToolSetName() + "." + name
Iterable<String> names = ((ToolSetFactory) factory).getToolNames(); tool = encode(((ToolSetFactory) factory).createTool(nameInSet)); } catch (Exception ex) { throw new PullException("Could not create tool: \"" + name + "." + nameInSet Iterable<String> names = ((ToolSetFactory) factory).getToolNames();
tool = toolSetInfo.getFactory().createTool(name); } catch (Exception ex) { throw new PullException("Could not create tool: \"" + toolSetInfo.getToolSetName() + "." + name
Iterable<String> names = ((ToolSetFactory) factory).getToolNames(); tool = encode(((ToolSetFactory) factory).createTool(nameInSet)); } catch (Exception ex) { throw new PullException("Could not create tool: \"" + name + "." + nameInSet Iterable<String> names = ((ToolSetFactory) factory).getToolNames();
private static int getFactoryType(Object factory) { int type = 0; if (factory instanceof RuntimeToolSetFactory) { type |= RUNTIME_TOOL_SET_FACTORY; if (factory instanceof ToolFactory) { type |= TOOL_FACTORY; } return type; } if (factory instanceof ToolFactory) { type |= TOOL_FACTORY; if (((ToolFactory) factory).isSingleton()) { type |= SINGLETON; } } if (factory instanceof ToolSetFactory) { type |= TOOL_SET_FACTORY; if (((ToolSetFactory) factory).isSingleton()) { type |= SINGLETON; } } assertTrue(type != 0, "unknown pull tool factory type: %s", factory == null ? null : factory.getClass() .getName()); return type; }
tool = toolSetInfo.getFactory().createTool(name); } catch (Exception ex) { throw new PullException("Could not create tool: \"" + toolSetInfo.getToolSetName() + "." + name
private static int getFactoryType(Object factory) { int type = 0; if (factory instanceof RuntimeToolSetFactory) { type |= RUNTIME_TOOL_SET_FACTORY; if (factory instanceof ToolFactory) { type |= TOOL_FACTORY; } return type; } if (factory instanceof ToolFactory) { type |= TOOL_FACTORY; if (((ToolFactory) factory).isSingleton()) { type |= SINGLETON; } } if (factory instanceof ToolSetFactory) { type |= TOOL_SET_FACTORY; if (((ToolSetFactory) factory).isSingleton()) { type |= SINGLETON; } } assertTrue(type != 0, "unknown pull tool factory type: %s", factory == null ? null : factory.getClass() .getName()); return type; }