ResinEmbed resin = new ResinEmbed(); HttpEmbed http = new HttpEmbed(8080); resin.addPort(http); WebAppEmbed webApp = new WebAppEmbed("/foo", "/home/ferg/ws/foo"); resin.addWebApp(webApp); resin.start(); resin.join();
339340341342343344345346347348349
{ if (_webApp == null) { if (rootDirectory == null) rootDirectory = getAppDir(); _resin = new ResinEmbed(); WebAppEmbed webAppEmbed = new WebAppEmbed(); webAppEmbed.setRootDirectory(rootDirectory.getURL()); _resin.addWebApp(webAppEmbed);
587588589590591592593594595596
} } public void close() { ResinEmbed resin = _resin; if (resin != null) resin.destroy(); }
646566676869707172
} @Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { ResinEmbed resinEmbeddedContainer = getResinEmbeddedContainer(); super.runChild(method, notifier); }
73747576777879808182838485
protected ResinEmbed getResinEmbeddedContainer() { if (_resinEmbeddedContainer == null) { if (_resinXmlPath == null) { _resinEmbeddedContainer = new ResinEmbed(); } else { _resinEmbeddedContainer = new ResinEmbed(_resinXmlPath); } _resinEmbeddedContainer.addScanRoot(); _resinEmbeddedContainer.addPort(new HttpEmbed(_httpPort));