/** * Creates a new {@link LocalConverter} with default configuration. * * @return A {@link LocalConverter} with default configuration. */ public static IConverter make() { return builder().build(); }
@Override public void onStartup(Container container) { LOGGER.info("Standalone conversion server is starting: starting up local converter"); LocalConverter.Builder builder = LocalConverter.builder() .baseFolder(baseFolder) .processTimeout(processTimeout, TimeUnit.MILLISECONDS) .workerPool(corePoolSize, maximumPoolSize, keepAliveTime, TimeUnit.MILLISECONDS); for (Map.Entry<Class<? extends IExternalConverter>, Boolean> entry : converterConfiguration.entrySet()) { LOGGER.info("{} converter: %s", entry.getValue() ? "ENABLED" : "DISABLED", entry.getKey()); builder = entry.getValue() ? builder.enable(entry.getKey()) : builder.disable(entry.getKey()); } this.converter = builder.build(); LOGGER.info("Standalone conversion server is starting: local converter is started"); }