@Test public void server() throws Exception { try (ApplicationFacade app = new ApplicationFacade(Application.fromBuilder(new Application.Builder().container("default", new Application.Builder.Container() .server("foo", MockServer.class))) )) { MockServer server = (MockServer) app.getServerById("foo"); assertNotNull(server); assertTrue(server.isStarted()); } }
@Beta public static Application fromBuilder(Builder builder) throws Exception { return builder.build(); }
Application implements AutoCloseable { @Beta public static Application fromBuilder(Builder builder) throws Exception { return builder.build(); } }
Application implements AutoCloseable { @Beta public static Application fromBuilder(Builder builder) throws Exception { return builder.build(); } Application(Path path, Networking networking, boolean deletePathWhenClosing); }
Application implements AutoCloseable { @Beta public static Application fromBuilder(Builder builder) throws Exception { return builder.build(); } Application(Path path, Networking networking, boolean deletePathWhenClosing); @Beta static Application fromBuilder(Builder builder); static Application fromServicesXml(String xml, Networking networking); static Application fromApplicationPackage(Path path, Networking networking); static Application fromApplicationPackage(File file, Networking networking); JDisc getJDisc(String id); @Override void close(); }
Application implements AutoCloseable { @Beta public static Application fromBuilder(Builder builder) throws Exception { return builder.build(); } Application(Path path, Networking networking, boolean deletePathWhenClosing); @Beta static Application fromBuilder(Builder builder); static Application fromServicesXml(String xml, Networking networking); static Application fromApplicationPackage(Path path, Networking networking); static Application fromApplicationPackage(File file, Networking networking); JDisc getJDisc(String id); @Override void close(); static final String vespaLocalProperty; }