@Override public void start() throws LifecycleException { this.container = new Meecrowave(this.configuration); this.container.start(); }
@Override public void start() throws LifecycleException { this.container = new Meecrowave(this.configuration); this.container.start(); }
public Meecrowave bake(final String ctx) { start(); return deployClasspath(ctx); }
public Meecrowave bake(final String ctx) { start(); return deployClasspath(ctx); }
public Meecrowave bake(final Consumer<Context> customizer) { start(); return deployClasspath(new DeploymentMeta("", null, customizer)); }
public Meecrowave bake(final Consumer<Context> customizer) { start(); return deployClasspath(new DeploymentMeta("", null, customizer)); }
@Override protected AutoCloseable onStart() { final Meecrowave meecrowave = new Meecrowave(configuration); meecrowave.start(); meecrowave.deployClasspath(new Meecrowave.DeploymentMeta(context, docBase, customizer)); return meecrowave; } }
@Override protected AutoCloseable onStart() { final Meecrowave meecrowave = new Meecrowave(configuration); meecrowave.start(); meecrowave.deployClasspath(new Meecrowave.DeploymentMeta(context, docBase, customizer)); return meecrowave; } }
final String fixedCtx = !ctx.isEmpty() && !ctx.startsWith("/") ? '/' + ctx : ctx; final String war = line.getOptionValue("webapp"); meecrowave.start(); if (war == null) { meecrowave.deployClasspath(new Meecrowave.DeploymentMeta(
meecrowave.start(); final String fixedContext = ofNullable(context).orElse(""); final Meecrowave.DeploymentMeta deploymentMeta = new Meecrowave.DeploymentMeta(
final String fixedCtx = !ctx.isEmpty() && !ctx.startsWith("/") ? '/' + ctx : ctx; final String war = line.getOptionValue("webapp"); meecrowave.start(); if (war == null) { meecrowave.deployClasspath(new Meecrowave.DeploymentMeta(
@Override public void run() { try { try (final Meecrowave meecrowave = new Meecrowave(create(args)) { @Override protected Connector createConnector() { return new Connector(CustomPefixHttp11NioProtocol.class.getName()); } }) { this.instance = meecrowave; meecrowave.start(); meecrowave.deployClasspath(new Meecrowave.DeploymentMeta("", null, stdCtx -> { stdCtx.setResources(new StandardRoot() { @Override protected void registerURLStreamHandlerFactory() { // no-op: not supported into OSGi since there is already one and it must set a // single time } }); })); doWait(meecrowave, null); } } catch (final Exception e) { throw new IllegalStateException(e); } }
new Thread(() -> { try (final Meecrowave meecrowave = new Meecrowave(Cli.create(buildArgs()))) { meecrowave.start().deployClasspath(new Meecrowave.DeploymentMeta("", null, stdCtx -> { stdCtx.setResources(new StandardRoot() {