@Test public void getReference() throws ProcessApplicationUnavailableException { OSGiProcessApplication app = new OSGiProcessApplication(createBundleMock(), createBlueprintContainerMock()); ProcessApplicationReference ref = app.getReference(); assertThat(ref, is(instanceOf(OSGiProcessApplicationReference.class))); assertThat((OSGiProcessApplication) ref.getProcessApplication(), is(sameInstance(app))); assertThat(ref.getName(), is(BUNDLE_NAME)); }
@Override public ProcessApplicationReference getReference() { if (reference == null) { reference = new OSGiProcessApplicationReference(this, getName()); } return reference; }
OSGiProcessApplication extends AbstractProcessApplication { @Override public ProcessApplicationReference getReference() { if (reference == null) { reference = new OSGiProcessApplicationReference(this, getName()); } return reference; } }
OSGiProcessApplication extends AbstractProcessApplication { @Override public ProcessApplicationReference getReference() { if (reference == null) { reference = new OSGiProcessApplicationReference(this, getName()); } return reference; } OSGiProcessApplication(Bundle bundle, BlueprintContainer blueprintContainer); }
OSGiProcessApplication extends AbstractProcessApplication { @Override public ProcessApplicationReference getReference() { if (reference == null) { reference = new OSGiProcessApplicationReference(this, getName()); } return reference; } OSGiProcessApplication(Bundle bundle, BlueprintContainer blueprintContainer); @Override ProcessApplicationReference getReference(); @Override ClassLoader getProcessApplicationClassloader(); Bundle getBundle(); }
OSGiProcessApplication extends AbstractProcessApplication { @Override public ProcessApplicationReference getReference() { if (reference == null) { reference = new OSGiProcessApplicationReference(this, getName()); } return reference; } OSGiProcessApplication(Bundle bundle, BlueprintContainer blueprintContainer); @Override ProcessApplicationReference getReference(); @Override ClassLoader getProcessApplicationClassloader(); Bundle getBundle();  }