Examples of OSGiHelper


Examples of org.gradle.api.internal.plugins.osgi.OsgiHelper

    public OsgiManifest osgiManifest(Closure closure) {
        return ConfigureUtil.configure(closure, createDefaultOsgiManifest(project));
    }

    private OsgiManifest createDefaultOsgiManifest(Project project) {
        OsgiHelper osgiHelper = new OsgiHelper();
        OsgiManifest osgiManifest = new DefaultOsgiManifest(((ProjectInternal) project).getFileResolver());
        osgiManifest.setVersion(osgiHelper.getVersion((String) project.property("version")));
        osgiManifest.setName(project.getConvention().getPlugin(BasePluginConvention.class).getArchivesBaseName());
        osgiManifest.setSymbolicName(osgiHelper.getBundleSymbolicName(project));
        return osgiManifest;
    }
View Full Code Here

Examples of org.gradle.api.internal.plugins.osgi.OsgiHelper

    }

    private OsgiManifest createDefaultOsgiManifest(final ProjectInternal project) {
        OsgiManifest osgiManifest = project.getServices().get(Instantiator.class).newInstance(DefaultOsgiManifest.class, project.getFileResolver());
        ConventionMapping mapping = ((IConventionAware) osgiManifest).getConventionMapping();
        final OsgiHelper osgiHelper = new OsgiHelper();

        mapping.map("version", new Callable<Object>() {
            public Object call() throws Exception {
                return osgiHelper.getVersion(project.getVersion().toString());
            }
        });
        mapping.map("name", new Callable<Object>() {
            public Object call() throws Exception {
                return project.getConvention().getPlugin(BasePluginConvention.class).getArchivesBaseName();
            }
        });
        mapping.map("symbolicName", new Callable<Object>() {
            public Object call() throws Exception {
                return osgiHelper.getBundleSymbolicName(project);
            }
        });

        return osgiManifest;
    }
View Full Code Here

Examples of org.ow2.chameleon.testing.helpers.OSGiHelper

        );
    }

    @Before
    public void commonSetUp() {
        osgiHelper = new OSGiHelper(bc);
        ipojoHelper = new IPOJOHelper(bc);

        testedBundle = osgiHelper.getBundle("test.bundle");

        // Dump OSGi Framework information
View Full Code Here

Examples of org.ow2.chameleon.testing.helpers.OSGiHelper

                .build();
    }

    @Before
    public void before() {
        helper = new OSGiHelper(context);
        waitForStability(context);

        helper.waitForService(URLStreamHandlerService.class, null, 1000);

        Assert.assertEquals("Check online manipulator bundle state",
View Full Code Here

Examples of org.ow2.chameleon.testing.helpers.OSGiHelper

  private Version version;

  public OBRMANHelper(BundleContext pContext) {
    context = pContext;
    osgi = new OSGiHelper(context);
    ipojo = new IPOJOHelper(context);
    version = getBundleVersion();
  }
View Full Code Here

Examples of org.ow2.chameleon.testing.helpers.OSGiHelper

    private final IPOJOHelper ipojo;

    public ApAMHelper(BundleContext pContext) {
  context = pContext;
  osgi = new OSGiHelper(context);
  ipojo = new IPOJOHelper(context);

    }
View Full Code Here

Examples of org.ow2.chameleon.testing.helpers.OSGiHelper

        );
    }

    @Before
    public void commonSetUp() {
        osgiHelper = new OSGiHelper(context);
        ipojoHelper = new IPOJOHelper(context);

        // Dump OSGi Framework information
        String vendor = (String) osgiHelper.getBundle(0).getHeaders().get(Constants.BUNDLE_VENDOR);
        if (vendor == null) {
View Full Code Here

Examples of org.ow2.chameleon.testing.helpers.OSGiHelper

    private IPOJOHelper ipojo;

    @Before
    public void init() {
        osgi = new OSGiHelper(context);
        ipojo = new IPOJOHelper(context);
    }
View Full Code Here

Examples of org.ow2.chameleon.testing.helpers.OSGiHelper

    private IPOJOHelper ipojo;

    @Before
    public void init() {
        osgi = new OSGiHelper(context);
        ipojo = new IPOJOHelper(context);
    }
View Full Code Here

Examples of org.ow2.chameleon.testing.helpers.OSGiHelper

    public static final File TEST = new File("src/test/resources");


    @Before
    public void init() {
        osgi = new OSGiHelper(context);
        ipojo = new IPOJOHelper(context);
    }
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.