@Override protected Script getScript(String profileName) throws ServiceException { ServiceScriptFactory scriptFactory = findScriptFactory(NAME); return (Script) scriptFactory.getScript(); }
/** * Finds the script factory with the specified service name. * * @param name * the service name {@link String}. * * @return the {@link List} of {@link ServiceScriptFactory}. * * @throws ServiceException * if no script factory with the specified name was found. */ protected final ServiceScriptFactory findScriptFactory(String name) throws ServiceException { log.searchScriptFactory(this, name); ProfileService profile = getProfile(); ServiceLoader<ServiceScriptFactory> loader = load(ServiceScriptFactory.class); for (ServiceScriptFactory scriptFactory : loader) { ServiceScriptInfo info = scriptFactory.getInfo(); log.foundServiceScript(this, info); if (serviceScriptCompare(info, name, profile)) { scriptFactory.setParent(injector); return scriptFactory; } } throw log.errorFindServiceScript(this, profile, name); }
@Override protected Script getScript(String profileName) throws ServiceException { ServiceScriptFactory scriptFactory = findScriptFactory(NAME); return (Script) scriptFactory.getScript(); }
@Override protected Script getScript(String profileName) throws ServiceException { ServiceScriptFactory scriptFactory = findScriptFactory(NAME); return (Script) scriptFactory.getScript(); }
@Override protected Script getScript(String profileName) throws ServiceException { ServiceScriptFactory scriptFactory = findScriptFactory(NAME); return (Script) scriptFactory.getScript(); }
@Override protected Script getScript(String profileName) throws ServiceException { ServiceScriptFactory scriptFactory = findScriptFactory(NAME); return (Script) scriptFactory.getScript(); }
@Override protected Script getScript(String profileName) throws ServiceException { ServiceScriptFactory scriptFactory = findScriptFactory(NAME); return (Script) scriptFactory.getScript(); }
@Override protected Script getScript(String profileName) throws ServiceException { ServiceScriptFactory scriptFactory = findScriptFactory(NAME); return (Script) scriptFactory.getScript(); }
@Override protected Script getScript(String profileName) throws ServiceException { ServiceScriptFactory scriptFactory = findScriptFactory(NAME); return (Script) scriptFactory.getScript(); }
@Override protected Script getScript(String profileName) throws ServiceException { ServiceScriptFactory scriptFactory = findScriptFactory(SERVICE_NAME); return (Script) scriptFactory.getScript(); }
@Override protected Script getScript(String profileName) throws ServiceException { ServiceScriptFactory scriptFactory = findScriptFactory(SERVICE_NAME); return (Script) scriptFactory.getScript(); }