Search in sources :

Example 11 with ImportedBundle

use of org.apache.aries.application.modelling.ImportedBundle in project aries by apache.

the class OBRAriesResolver method toImportedBundle.

private Collection<ImportedBundle> toImportedBundle(Collection<Content> content) throws ResolverException {
    log.debug(LOG_ENTRY, "toImportedBundle", content);
    List<ImportedBundle> result = new ArrayList<ImportedBundle>();
    for (Content c : content) {
        try {
            result.add(modellingManager.getImportedBundle(c.getContentName(), c.getVersion().toString()));
        } catch (InvalidAttributeException iae) {
            throw new ResolverException(iae);
        }
    }
    log.debug(LOG_EXIT, "toImportedBundle", result);
    return result;
}
Also used : ResolverException(org.apache.aries.application.management.ResolverException) InvalidAttributeException(org.apache.aries.application.InvalidAttributeException) Content(org.apache.aries.application.Content) ArrayList(java.util.ArrayList) ImportedBundle(org.apache.aries.application.modelling.ImportedBundle)

Aggregations

ImportedBundle (org.apache.aries.application.modelling.ImportedBundle)11 ArrayList (java.util.ArrayList)4 InvalidAttributeException (org.apache.aries.application.InvalidAttributeException)4 Content (org.apache.aries.application.Content)3 ResolverException (org.apache.aries.application.management.ResolverException)3 ImportedBundleImpl (org.apache.aries.application.modelling.impl.ImportedBundleImpl)3 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 Map (java.util.Map)2 AriesApplicationResolver (org.apache.aries.application.management.spi.resolve.AriesApplicationResolver)2 ExportedPackage (org.apache.aries.application.modelling.ExportedPackage)2 ImportedPackage (org.apache.aries.application.modelling.ImportedPackage)2 ModellingHelperImpl (org.apache.aries.application.modelling.utils.impl.ModellingHelperImpl)2 Resolver (org.apache.felix.bundlerepository.Resolver)2 List (java.util.List)1 PreResolveHook (org.apache.aries.application.management.spi.resolve.PreResolveHook)1 DeployedBundles (org.apache.aries.application.modelling.DeployedBundles)1 ExportedService (org.apache.aries.application.modelling.ExportedService)1 ImportedService (org.apache.aries.application.modelling.ImportedService)1 ModelledResource (org.apache.aries.application.modelling.ModelledResource)1