Examples of provides()


Examples of org.apache.karaf.util.tracker.Services.provides()

                        }
                        requirements.append("osgi.service;effective:=active;filter:=\"")
                                    .append(flt)
                                    .append("\"");
                    }
                    for (ProvideService cap : services.provides()) {
                        if (capabilities.length() > 0) {
                            capabilities.append(",");
                        }
                        capabilities.append("osgi.service;effective:=active;objectClass=")
                                    .append(cap.value().getName());
View Full Code Here

Examples of org.candlepin.model.Pool.provides()

        Pool lookedUp = entityManager().find(
                Pool.class, pool.getId());
        assertNotNull(lookedUp);
        assertEquals(owner.getId(), lookedUp.getOwner().getId());
        assertEquals(prod1.getId(), lookedUp.getProductId());
        assertTrue(lookedUp.provides(prod1.getId()));
    }

    @Test
    public void testCreateWithDerivedProvidedProducts() {
        Product derivedProd = TestUtil.createProduct();
View Full Code Here

Examples of org.sonar.api.batch.sensor.internal.DefaultSensorDescriptor.provides()

      .workOnLanguages("java", "php")
      .workOnFileTypes(InputFile.Type.MAIN);

    assertThat(descriptor.name()).isEqualTo("Foo");
    assertThat(descriptor.dependsOn()).containsOnly(CoreMetrics.NCLOC);
    assertThat(descriptor.provides()).containsOnly(CoreMetrics.BLOCKER_VIOLATIONS);
    assertThat(descriptor.languages()).containsOnly("java", "php");
    assertThat(descriptor.types()).containsOnly(InputFile.Type.MAIN);
  }

}
View Full Code Here

Examples of org.sonar.api.batch.sensor.internal.DefaultSensorDescriptor.provides()

    List<Object> result = new ArrayList<Object>();
    result.addAll(evaluateAnnotatedClasses(extension, DependedUpon.class));
    if (ClassUtils.isAssignable(extension.getClass(), Sensor.class)) {
      DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor();
      ((Sensor) extension).describe(descriptor);
      result.addAll(Arrays.asList(descriptor.provides()));
    }
    return result;
  }

  private void completePhaseDependencies(DirectAcyclicGraph dag, Object extension) {
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.