@Override protected void doStart() throws Exception { Hashtable<String, Object> props = new Hashtable<>(); props.put("url.handler.protocol", "blueprint"); register(URLStreamHandlerService.class, new BlueprintURLHandler(), props); register(new Class[] { ArtifactUrlTransformer.class, ArtifactListener.class }, new BlueprintDeploymentListener()); }
@Override protected void doStart() throws Exception { Hashtable<String, Object> props = new Hashtable<>(); props.put("url.handler.protocol", "blueprint"); register(URLStreamHandlerService.class, new BlueprintURLHandler(), props); register(new Class[] { ArtifactUrlTransformer.class, ArtifactListener.class }, new BlueprintDeploymentListener()); }
@Override public URLStreamHandler createURLStreamHandler(String protocol) { switch (protocol) { case MVN_URI_PREFIX: return new org.ops4j.pax.url.mvn.Handler(); case WRAP_URI_PREFIX: return new org.ops4j.pax.url.wrap.Handler(); case FEATURE_URI_PREFIX: return new FeatureURLHandler(); case BLUEPRINT_URI_PREFIX: return new BlueprintURLHandler(); default: return null; } }