Examples of ObrBundleInfo


Examples of org.apache.aries.application.resolver.obr.impl.OBRBundleInfo

  }

  private BundleInfo toBundleInfo(Resource resource)
  {
    String location = resource.getURL().toExternalForm();
    return new OBRBundleInfo(resource.getSymbolicName(),
            resource.getVersion(),
            location,
            null,
            null,
            null,
View Full Code Here

Examples of org.apache.aries.application.resolver.obr.impl.OBRBundleInfo

      directives = new HashMap<String, String>();
      directives.put(Constants.RESOLUTION_DIRECTIVE, Constants.RESOLUTION_OPTIONAL);
    }
   

    return new OBRBundleInfo(resource.getSymbolicName(),
                             resource.getVersion(),
                             resource.getURI(),
                             null,
                             null,
                             null,
View Full Code Here

Examples of org.apache.aries.application.resolver.obr.impl.OBRBundleInfo

      directives = new HashMap<String, String>();
      directives.put(Constants.RESOLUTION_DIRECTIVE, Constants.RESOLUTION_OPTIONAL);
    }
   

    return new OBRBundleInfo(resource.getSymbolicName(),
                             resource.getVersion(),
                             resource.getURI(),
                             null,
                             null,
                             null,
View Full Code Here

Examples of org.apache.aries.application.resolver.obr.impl.OBRBundleInfo

    if (optional) {
      directives = new HashMap<String, String>();
      directives.put(Constants.RESOLUTION_DIRECTIVE, Constants.RESOLUTION_OPTIONAL);
    }
    String location = resource.getURI();
    return new OBRBundleInfo(resource.getSymbolicName(),
                             resource.getVersion(),
                             location,
                             null,
                             null,
                             null,
View Full Code Here

Examples of org.apache.geronimo.aries.resolver.impl.OBRBundleInfo

        if (optional) {
            directives = new HashMap<String, String>();
            directives.put("resolution", "optional");
        }
        String location = resource.getURI();       
        return new OBRBundleInfo(resource.getSymbolicName(),
                                 resource.getVersion(),
                                 location,
                                 null,
                                 null,
                                 null,
View Full Code Here

Examples of org.apache.geronimo.aries.resolver.obr.impl.OBRBundleInfo

        if (optional) {
            directives = new HashMap<String, String>();
            directives.put(Constants.RESOLUTION_DIRECTIVE, Constants.RESOLUTION_OPTIONAL);
        }
        String location = resource.getURI();
        return new OBRBundleInfo(resource.getSymbolicName(), resource.getVersion(), location, null, null, null, null,
                null, null, directives, null);
    }
View Full Code Here

Examples of org.apache.geronimo.aries.resolver.obr.impl.OBRBundleInfo

        if (optional) {
            directives = new HashMap<String, String>();
            directives.put(Constants.RESOLUTION_DIRECTIVE, Constants.RESOLUTION_OPTIONAL);
        }
        String location = resource.getURI();
        return new OBRBundleInfo(resource.getSymbolicName(), resource.getVersion(), location, null, null, null, null,
                null, null, directives, null);
    }
View Full Code Here

Examples of org.apache.karaf.cellar.obr.ObrBundleInfo

        Set<ObrBundleInfo> bundles = clusterManager.getSet(Constants.BUNDLES_DISTRIBUTED_SET_NAME + Configurations.SEPARATOR + groupName);
        synchronized (obrService) {
            Repository repository = obrService.addRepository(url);
            Resource[] resources = repository.getResources();
            for (Resource resource : resources) {
                ObrBundleInfo info = new ObrBundleInfo(resource.getPresentationName(), resource.getSymbolicName(), resource.getVersion().toString());
                bundles.add(info);
            }
            obrService.removeRepository(url);
        }
View Full Code Here

Examples of org.apache.karaf.cellar.obr.ObrBundleInfo

        Set<ObrBundleInfo> bundles = clusterManager.getSet(Constants.BUNDLES_DISTRIBUTED_SET_NAME + Configurations.SEPARATOR + groupName);
        synchronized (obrService) {
            Repository repository = obrService.addRepository(url);
            Resource[] resources = repository.getResources();
            for (Resource resource : resources) {
                ObrBundleInfo info = new ObrBundleInfo(resource.getPresentationName(), resource.getSymbolicName(), resource.getVersion().toString());
                bundles.remove(info);
            }
            obrService.removeRepository(url);
        }
View Full Code Here

Examples of org.apache.karaf.cellar.obr.ObrBundleInfo

        Set<ObrBundleInfo> clusterBundles = clusterManager.getSet(Constants.BUNDLES_DISTRIBUTED_SET_NAME + Configurations.SEPARATOR + groupName);
        synchronized (obrService) {
            Repository repository = obrService.addRepository(url);
            Resource[] resources = repository.getResources();
            for (Resource resource : resources) {
                ObrBundleInfo info = new ObrBundleInfo(resource.getPresentationName(), resource.getSymbolicName(), resource.getVersion().toString());
                clusterBundles.remove(info);
            }
            obrService.removeRepository(url);
        }
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.