@Test public void testStartupConfiguration() throws IOException { InputStream is = new StringBufferInputStream( PROCESS_CHECKER + "=all\n" + USESYSTEMCLASSLOADER + "=true\n" + PROVIDER_CONFIGURATION + "=abc.MyProvider" ); BooterDeserializer deserializer = new BooterDeserializer( is ); assertThat( deserializer.getStartupConfiguration().getProcessChecker() ) .isEqualTo( ALL ); assertThat( deserializer.getStartupConfiguration().getClassLoaderConfiguration().isUseSystemClassLoader() ) .isTrue(); assertThat( deserializer.getStartupConfiguration().getProviderClassName() ) .isEqualTo( "abc.MyProvider" ); }
public StartupConfiguration getStartupConfiguration() { boolean useSystemClassLoader = properties.getBooleanProperty( USESYSTEMCLASSLOADER ); boolean useManifestOnlyJar = properties.getBooleanProperty( USEMANIFESTONLYJAR ); String providerConfiguration = properties.getProperty( PROVIDER_CONFIGURATION ); ClassLoaderConfiguration classLoaderConfiguration = new ClassLoaderConfiguration( useSystemClassLoader, useManifestOnlyJar ); ClasspathConfiguration classpathConfiguration = new ClasspathConfiguration( properties ); String processChecker = properties.getProperty( PROCESS_CHECKER ); ProcessCheckerType processCheckerType = ProcessCheckerType.toEnum( processChecker ); return StartupConfiguration.inForkedVm( providerConfiguration, classpathConfiguration, classLoaderConfiguration, processCheckerType ); }
BooterDeserializer { public StartupConfiguration getStartupConfiguration() { boolean useSystemClassLoader = properties.getBooleanProperty( USESYSTEMCLASSLOADER ); boolean useManifestOnlyJar = properties.getBooleanProperty( USEMANIFESTONLYJAR ); String providerConfiguration = properties.getProperty( PROVIDER_CONFIGURATION ); ClassLoaderConfiguration classLoaderConfiguration = new ClassLoaderConfiguration( useSystemClassLoader, useManifestOnlyJar ); ClasspathConfiguration classpathConfiguration = new ClasspathConfiguration( properties ); String processChecker = properties.getProperty( PROCESS_CHECKER ); ProcessCheckerType processCheckerType = ProcessCheckerType.toEnum( processChecker ); return StartupConfiguration.inForkedVm( providerConfiguration, classpathConfiguration, classLoaderConfiguration, processCheckerType ); } }
BooterDeserializer { public StartupConfiguration getStartupConfiguration() { boolean useSystemClassLoader = properties.getBooleanProperty( USESYSTEMCLASSLOADER ); boolean useManifestOnlyJar = properties.getBooleanProperty( USEMANIFESTONLYJAR ); String providerConfiguration = properties.getProperty( PROVIDER_CONFIGURATION ); ClassLoaderConfiguration classLoaderConfiguration = new ClassLoaderConfiguration( useSystemClassLoader, useManifestOnlyJar ); ClasspathConfiguration classpathConfiguration = new ClasspathConfiguration( properties ); String processChecker = properties.getProperty( PROCESS_CHECKER ); ProcessCheckerType processCheckerType = ProcessCheckerType.toEnum( processChecker ); return StartupConfiguration.inForkedVm( providerConfiguration, classpathConfiguration, classLoaderConfiguration, processCheckerType ); } BooterDeserializer( InputStream inputStream ); }
BooterDeserializer { public StartupConfiguration getStartupConfiguration() { boolean useSystemClassLoader = properties.getBooleanProperty( USESYSTEMCLASSLOADER ); boolean useManifestOnlyJar = properties.getBooleanProperty( USEMANIFESTONLYJAR ); String providerConfiguration = properties.getProperty( PROVIDER_CONFIGURATION ); ClassLoaderConfiguration classLoaderConfiguration = new ClassLoaderConfiguration( useSystemClassLoader, useManifestOnlyJar ); ClasspathConfiguration classpathConfiguration = new ClasspathConfiguration( properties ); String processChecker = properties.getProperty( PROCESS_CHECKER ); ProcessCheckerType processCheckerType = ProcessCheckerType.toEnum( processChecker ); return StartupConfiguration.inForkedVm( providerConfiguration, classpathConfiguration, classLoaderConfiguration, processCheckerType ); } BooterDeserializer( InputStream inputStream ); @Nonnull String getConnectionString(); String getPluginPid(); ProviderConfiguration deserialize(); StartupConfiguration getStartupConfiguration(); }
BooterDeserializer { public StartupConfiguration getStartupConfiguration() { boolean useSystemClassLoader = properties.getBooleanProperty( USESYSTEMCLASSLOADER ); boolean useManifestOnlyJar = properties.getBooleanProperty( USEMANIFESTONLYJAR ); String providerConfiguration = properties.getProperty( PROVIDER_CONFIGURATION ); ClassLoaderConfiguration classLoaderConfiguration = new ClassLoaderConfiguration( useSystemClassLoader, useManifestOnlyJar ); ClasspathConfiguration classpathConfiguration = new ClasspathConfiguration( properties ); String processChecker = properties.getProperty( PROCESS_CHECKER ); ProcessCheckerType processCheckerType = ProcessCheckerType.toEnum( processChecker ); return StartupConfiguration.inForkedVm( providerConfiguration, classpathConfiguration, classLoaderConfiguration, processCheckerType ); } BooterDeserializer( InputStream inputStream ); @Nonnull String getConnectionString(); String getPluginPid(); ProviderConfiguration deserialize(); StartupConfiguration getStartupConfiguration();  }