Examples of BundleInfo


Examples of org.osgi.impl.bundle.obr.resource.BundleInfo

        catch ( MalformedURLException e )
        {
            e.printStackTrace();
            throw new MojoExecutionException( "MalformedURLException" );
        }
        BundleInfo info = null;
        try
        {
            info = new BundleInfo( repository, new File( outFile ) );
        }
        catch ( Exception e )
        {
            e.printStackTrace();
            throw new MojoExecutionException( "Exception" );
        }

        try
        {
            m_resource = info.build();
        }
        catch ( Exception e )
        {
            e.printStackTrace();
            throw new MojoExecutionException( "Exception" );
View Full Code Here

Examples of org.osgi.impl.bundle.obr.resource.BundleInfo

        if (path.getName().equals("repository.xml") || path.getName().equals(new File(repositoryFileName).getName())) {
            // do not index our repository.xml, nor the file we are working on now.
            return;
        }
      if (path.getName().endsWith(".jar")) {
        BundleInfo info = new BundleInfo(repository, path);
        ResourceImpl resource = info.build();
        if (urlTemplate != null) {
          doTemplate(path, resource);
        }
                else {
                    resource.setURL(path.toURL());
View Full Code Here

Examples of org.osgi.service.deploymentadmin.BundleInfo

    public Bundle getBundle(String symbolicName) {
        if (isStale()) {
            throw new IllegalStateException("Can not get bundle from stale deployment package.");
        }

        BundleInfo bundleInfo = (BundleInfo) m_nameToBundleInfo.get(symbolicName);
        if (bundleInfo != null) {
            Version version = bundleInfo.getVersion();

            Bundle[] bundles = m_bundleContext.getBundles();
            for (int i = 0; i < bundles.length; i++) {
                if (symbolicName.equals(bundles[i].getSymbolicName()) && version.equals(bundles[i].getVersion())) {
                    return bundles[i];
View Full Code Here

Examples of org.osgi.service.deploymentadmin.BundleInfo

    public Bundle getBundle(String symbolicName) {
        if (isStale()) {
            throw new IllegalStateException("Can not get bundle from stale deployment package.");
        }

        BundleInfo bundleInfo = (BundleInfo) m_nameToBundleInfo.get(symbolicName);
        if (bundleInfo != null) {
            Version version = bundleInfo.getVersion();

            Bundle[] bundles = m_bundleContext.getBundles();
            for (int i = 0; i < bundles.length; i++) {
                if (symbolicName.equals(bundles[i].getSymbolicName()) && version.equals(bundles[i].getVersion())) {
                    return bundles[i];
View Full Code Here

Examples of org.python.pydev.core.bundle.BundleInfo

    // ----------------- SINGLETON THINGS -----------------------------
    public static IBundleInfo info;

    public static IBundleInfo getBundleInfo() {
        if (CustomizationsPlugin.info == null) {
            CustomizationsPlugin.info = new BundleInfo(CustomizationsPlugin.getDefault().getBundle());
        }
        return CustomizationsPlugin.info;
    }
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.