Examples of ImportedService


Examples of org.apache.aries.application.modelling.ImportedService

        // objectClass=javax.persistence.EntityManagerFactory, org.apache.aries.jpa.proxy.factory=*, osgi.unit.name=blabber
        //
        // There will be no matching service for this reference.
        // For now we blacklist certain objectClasses and filters - this is a pretty dreadful thing to do.
        if (isNotBlacklisted (iface, blueprintFilter)) {
          ImportedService ref = _modellingManager.getImportedService (optional, iface, compName, blueprintFilter,
              id, isMultiple);
          result.add (ref)
        }
      }
    }
View Full Code Here

Examples of org.apache.aries.application.modelling.ImportedService

        Map<String, String> attrs = ManifestHeaderProcessor.parseFilter(requirement.getFilter());
        iface = attrs.get(Constants.OBJECTCLASS);
        componentName = attrs.get ("osgi.service.blueprint.compname");
        blueprintFilter = requirement.getFilter();

        ImportedService svc = modellingManager.getImportedService(optional, iface, componentName,
            blueprintFilter, id, isMultiple);
        serviceRequirements.add(svc);
      } else if (ResourceType.BUNDLE.toString().equals(requirement.getName())) {
        String filter =requirement.getFilter();
        Map<String,String> atts = ManifestHeaderProcessor.parseFilter(filter);
View Full Code Here

Examples of org.apache.aries.application.modelling.ImportedService

        Map<String, String> attrs = ManifestHeaderProcessor.parseFilter(requirement.getFilter());
        iface = attrs.get(Constants.OBJECTCLASS);
        componentName = attrs.get ("osgi.service.blueprint.compname");
        blueprintFilter = requirement.getFilter();

        ImportedService svc = modellingManager.getImportedService(optional, iface, componentName,
            blueprintFilter, id, isMultiple);
        serviceRequirements.add(svc);
      } else if (ResourceType.BUNDLE.toString().equals(requirement.getName())) {
        String filter =requirement.getFilter();
        Map<String,String> atts = ManifestHeaderProcessor.parseFilter(filter);
View Full Code Here

Examples of org.apache.aries.application.modelling.ImportedService

          // objectClass=javax.persistence.EntityManagerFactory, org.apache.aries.jpa.proxy.factory=*, osgi.unit.name=blabber
          //
          // There will be no matching service for this reference.
          // For now we blacklist certain objectClasses and filters - this is a pretty dreadful thing to do.
          if (!isBlacklisted (iface, blueprintFilter)) {
            ImportedService ref = _modellingManager.getImportedService (optional, iface, compName, blueprintFilter,
                id, isMultiple);
            result.add (ref)
          }
        }
      }
View Full Code Here

Examples of org.apache.felix.ipojo.api.composite.ImportedService

       assertThat(refs.length, is(not(0)));

       CompositeComponentType type = new CompositeComponentType()
           .setBundleContext(context)
           .setComponentTypeName("comp2")
           .addSubService(new ImportedService().setSpecification(Foo.class.getName()))
           .addInstance(new Instance(cons.getFactory().getName()));

       ComponentInstance ci = type.createInstance();

       System.out.println(ci.getInstanceDescription().getDescription());
View Full Code Here

Examples of org.apache.felix.ipojo.api.composite.ImportedService

       prov.createInstance();

       CompositeComponentType type = new CompositeComponentType()
           .setBundleContext(context)
           .setComponentTypeName("comp3")
           .addSubService(new ImportedService().setSpecification(Foo.class.getName()).setOptional(true));

       ComponentInstance ci = type.createInstance();

       assertThat("ci is valid", ci.getState(), is(ComponentInstance.VALID));
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.