@Test public void getProcessApplicationClassloader() { Bundle bundle = createBundleMock(); OSGiProcessApplication app = new OSGiProcessApplication(bundle, createBlueprintContainerMock()); ClassLoader cl = app.getProcessApplicationClassloader(); assertThat(cl, is(instanceOf(BundleDelegatingClassLoader.class))); assertThat(((BundleDelegatingClassLoader) cl).getBundle(), is(sameInstance(bundle))); }
@Override public ClassLoader getProcessApplicationClassloader() { return bundleDelegatingCL; }
OSGiProcessApplication extends AbstractProcessApplication { @Override public ClassLoader getProcessApplicationClassloader() { return bundleDelegatingCL; } }
OSGiProcessApplication extends AbstractProcessApplication { @Override public ClassLoader getProcessApplicationClassloader() { return bundleDelegatingCL; } OSGiProcessApplication(Bundle bundle, BlueprintContainer blueprintContainer); }
OSGiProcessApplication extends AbstractProcessApplication { @Override public ClassLoader getProcessApplicationClassloader() { return bundleDelegatingCL; } OSGiProcessApplication(Bundle bundle, BlueprintContainer blueprintContainer); @Override ProcessApplicationReference getReference(); @Override ClassLoader getProcessApplicationClassloader(); Bundle getBundle(); }
OSGiProcessApplication extends AbstractProcessApplication { @Override public ClassLoader getProcessApplicationClassloader() { return bundleDelegatingCL; } OSGiProcessApplication(Bundle bundle, BlueprintContainer blueprintContainer); @Override ProcessApplicationReference getReference(); @Override ClassLoader getProcessApplicationClassloader(); Bundle getBundle();  }