@Test public void canUseParametersInClasspath() throws Exception { configGenerator.setProperty("backing.check.classpath","${nuxeo.home}/nxserver/bundles/versioned-*.jar"); assertThat(bsc.getClasspathForTemplate("backing")).isEqualTo(bundles.getAbsolutePath() + File.separator + "versioned-*.jar"); }
String getClasspathForTemplate(String template) { String classPath = configurationGenerator.getUserConfig().getProperty(template + PARAM_CHECK_CLASSPATH_SUFFIX); TextTemplate templateParser = new TextTemplate(configurationGenerator.getUserConfig()); String result = templateParser.processText(classPath); return result == null ? null : result.replace("/", File.separator); }
BackingServiceConfigurator { String getClasspathForTemplate(String template) { String classPath = configurationGenerator.getUserConfig().getProperty(template + PARAM_CHECK_CLASSPATH_SUFFIX); TextTemplate templateParser = new TextTemplate(configurationGenerator.getUserConfig()); String result = templateParser.processText(classPath); return result == null ? null : result.replace("/", File.separator); } }
BackingServiceConfigurator { String getClasspathForTemplate(String template) { String classPath = configurationGenerator.getUserConfig().getProperty(template + PARAM_CHECK_CLASSPATH_SUFFIX); TextTemplate templateParser = new TextTemplate(configurationGenerator.getUserConfig()); String result = templateParser.processText(classPath); return result == null ? null : result.replace("/", File.separator); } BackingServiceConfigurator(ConfigurationGenerator configurationGenerator); }
BackingServiceConfigurator { String getClasspathForTemplate(String template) { String classPath = configurationGenerator.getUserConfig().getProperty(template + PARAM_CHECK_CLASSPATH_SUFFIX); TextTemplate templateParser = new TextTemplate(configurationGenerator.getUserConfig()); String result = templateParser.processText(classPath); return result == null ? null : result.replace("/", File.separator); } BackingServiceConfigurator(ConfigurationGenerator configurationGenerator); void verifyInstallation(); }
BackingServiceConfigurator { String getClasspathForTemplate(String template) { String classPath = configurationGenerator.getUserConfig().getProperty(template + PARAM_CHECK_CLASSPATH_SUFFIX); TextTemplate templateParser = new TextTemplate(configurationGenerator.getUserConfig()); String result = templateParser.processText(classPath); return result == null ? null : result.replace("/", File.separator); } BackingServiceConfigurator(ConfigurationGenerator configurationGenerator); void verifyInstallation(); static final String PARAM_RETRY_POLICY_ENABLED; static final String PARAM_RETRY_POLICY_MAX_RETRIES; static final String PARAM_RETRY_POLICY_DELAY_IN_MS; static final String PARAM_POLICY_DEFAULT_DELAY_IN_MS; static final String PARAM_RETRY_POLICY_DEFAULT_RETRIES; static final String PARAM_CHECK_CLASSPATH_SUFFIX; static final String PARAM_CHECK_SUFFIX; }