@ASL_2_0 @BundleCategory(value=Category.clients) @BundleDevelopers(name="Milen Dyankov", value="milendyankov@gmail.com") @BundleDocURL("https://github.com/azzazzel/wedeploy-client/tree/master/java-client#comcommsenwedeployclient") public class WeDeployClient { SPI spi = new SPI(); public WeDeployDataService data() throws WeDeployClientException { return spi.wire(WeDeployDataService.class); } public WeDeployStatusService status() throws WeDeployClientException { return spi.wire(WeDeployStatusService.class); } }
@RequireCapability( ns="osgi.extender", filter="(osgi.extender=osgi.serviceloader.registrar)") @ProvideCapability( ns="osgi.serviceloader", name="java.rmi.server.RMIClassLoaderSpi")
private void doBundleCategory(BundleCategory annotation) throws IOException { if (annotation.custom() != null) for (String s : annotation.custom()) { add(Constants.BUNDLE_CATEGORY, s); } if (annotation.value() != null) for (Category s : annotation.value()) { add(Constants.BUNDLE_CATEGORY, s.toString()); } }
private void doRequireCapability(RequireCapability annotation) { StringBuilder sb = new StringBuilder(annotation.ns()); if (annotation.filter() != null) sb.append(";filter:='").append(annotation.filter()).append("'"); if (annotation.effective() != null) sb.append(";effective:='").append(annotation.effective()).append("'"); if (annotation.resolution() != null) sb.append(";resolution:='").append(annotation.resolution()).append("'"); if (annotation.value() != null) sb.append(";").append(annotation.value()); add(Constants.REQUIRE_CAPABILITY, sb.toString()); }
private void doBundleDocURL(BundleDocURL annotation) throws IOException { add(Constants.BUNDLE_DOCURL, annotation.value()); }
private void doBundeCopyright(BundleCopyright annotation) { add(Constants.BUNDLE_COPYRIGHT, annotation.value()); }
private void doLicense(Annotation a) throws Exception { BundleLicense annotation = a.getAnnotation(BundleLicense.class); Parameters p = new Parameters(); p.put(annotation.name(), getAttributes(a, "name")); add(Constants.BUNDLE_LICENSE, p.toString()); }
@RequireCapability( ns="osgi.extender", filter="(osgi.extender=osgi.serviceloader.registrar)") @ProvideCapability( ns="osgi.serviceloader", name="net.jini.security.TrustVerifier")
private void doRequireCapability(RequireCapability annotation) { StringBuilder sb = new StringBuilder(annotation.ns()); if (annotation.filter() != null) sb.append(";filter:='").append(annotation.filter()).append("'"); if (annotation.effective() != null) sb.append(";effective:='").append(annotation.effective()).append("'"); if (annotation.resolution() != null) sb.append(";resolution:='").append(annotation.resolution()).append("'"); if (annotation.value() != null) sb.append(";").append(annotation.value()); add(Constants.REQUIRE_CAPABILITY, sb.toString()); }
private void doBundleCategory(BundleCategory annotation) throws IOException { if (annotation.custom() != null) for (String s : annotation.custom()) { add(Constants.BUNDLE_CATEGORY, s); } if (annotation.value() != null) for (Category s : annotation.value()) { add(Constants.BUNDLE_CATEGORY, s.toString()); } }
@ASL_2_0 @BundleCategory(value=Category.clients) @BundleDevelopers(name="Milen Dyankov", value="milendyankov@gmail.com") @BundleDocURL("https://github.com/azzazzel/wedeploy-client/tree/master/java-client#comcommsenwedeploytransportrestokhttp") @Component ( service = WeDeployRestClient.class,
private void doBundleDocURL(BundleDocURL annotation) { add(Constants.BUNDLE_DOCURL, annotation.value()); }
private void doBundeCopyright(BundleCopyright annotation) throws IOException { add(Constants.BUNDLE_COPYRIGHT, annotation.value()); }
private void doLicense(Annotation a) throws Exception { BundleLicense annotation = a.getAnnotation(BundleLicense.class); Parameters p = new Parameters(); p.put(annotation.name(), getAttributes(a, "name")); add(Constants.BUNDLE_LICENSE, p.toString()); }
private void doBundleDocURL(BundleDocURL annotation) { add(Constants.BUNDLE_DOCURL, annotation.value()); }
private void doBundeCopyright(BundleCopyright annotation) { add(Constants.BUNDLE_COPYRIGHT, annotation.value()); }
private void doBundleDocURL(BundleDocURL annotation) throws IOException { add(Constants.BUNDLE_DOCURL, annotation.value()); }
private void doBundeCopyright(BundleCopyright annotation) throws IOException { add(Constants.BUNDLE_COPYRIGHT, annotation.value()); }