Alex Courtis, Marcos Scriven and James Winters
Join James, Alex and Marcos to hear about our last planned release for the P2 plugin platform, including new lifecycle management tools, licensing model enhancements and other new features including JDK8. Learn the benefits of being Transformerless! Come prepared with your technical questions.
12. Dynamic Modules
final Element e = new DOMElement("servlet");
e.addAttribute("key", "my-servlet");
e.addAttribute("class", MyServlet.class.getName());
final Element url = new DOMElement("url-pattern");
url.setText("/my-path");
e.add(url);
pluginController.addDynamicModule(plugin, e);
19. Keep Maven and OSGi Happy
http://semver.org/
Maven
This goes in your POM’s <version>
<MAJOR>.<MINOR>.<MICRO>-<QUALIFIER>
OSGi
bndlib translates it to this in your MF
<MAJOR>.<MINOR>.<MICRO>.<QUALIFIER>
YES
5.8.0
5.8.0-SNAPSHOT
5.8.0-m001
NO
5.8
5.8-SNAPSHOT
5.8.SNAPSHOT
5.8.m1
5.8-m1
22. Some Highlights
public class HttpClientRequest
{
public HttpClientRequest addAuthentication
public HttpClientRequest addBasicAuthentication
public HttpClientRequest addSeraphAuthentication
public HttpClientRequest addTrustedTokenAuthentication
@Deprecated
public interface CertificateFactory