Examples of OsgiService


Examples of com.github.dynamicextensionsalfresco.osgi.OsgiService

    @Override
    public void afterPropertiesSet() throws Exception {
        final Map<String,Object> exportables = applicationContext.getBeansWithAnnotation(OsgiService.class);
    for (final Map.Entry<String, Object> entry : exportables.entrySet()) {
            final OsgiService osgiService = applicationContext.findAnnotationOnBean(entry.getKey(), OsgiService.class);
            registerOsgiService(entry.getKey(), osgiService);
        }
  }
View Full Code Here

Examples of org.apache.sling.models.annotations.injectorspecific.OSGiService

        this.bundleContext = ctx.getBundleContext();
    }

    public Object getValue(Object adaptable, String name, Type type, AnnotatedElement element,
            DisposalCallbackRegistry callbackRegistry) {
        OSGiService annotation = element.getAnnotation(OSGiService.class);
        String filterString = null;
        if (annotation != null) {
            if (StringUtils.isNotBlank(annotation.filter())) {
                filterString = annotation.filter();
            }
        } else {
            Filter filter = element.getAnnotation(Filter.class);
            if (filter != null) {
                filterString = filter.value();
View Full Code Here

Examples of org.apache.sling.models.annotations.injectorspecific.OSGiService

    }

    @Override
    public InjectAnnotationProcessor createAnnotationProcessor(Object adaptable, AnnotatedElement element) {
        // check if the element has the expected annotation
        OSGiService annotation = element.getAnnotation(OSGiService.class);
        if (annotation != null) {
            return new OSGiServiceAnnotationProcessor(annotation);
        }
        return null;
    }
View Full Code Here

Examples of org.osgi.jmx.codec.OSGiService

    ArrayList<OSGiService> services = new ArrayList<OSGiService>();
    for (Bundle bundle : bc.getBundles()) {
      ServiceReference[] refs = bundle.getRegisteredServices();
      if (refs != null) {
        for (ServiceReference ref : refs) {
          services.add(new OSGiService(ref));
        }
      }
    }
    return OSGiService.tableFrom(services);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.