Search in sources :

Example 1 with ResourceWrapper

use of org.apache.aries.application.resolver.obr.impl.ResourceWrapper in project aries by apache.

the class OBRAriesResolver method getLocalRepository.

private Repository getLocalRepository(RepositoryAdmin admin) {
    Repository localRepository = repositoryAdmin.getLocalRepository();
    Resource[] resources = localRepository.getResources();
    Resource[] newResources = new Resource[resources.length];
    for (int i = 0; i < resources.length; i++) {
        newResources[i] = new ResourceWrapper(resources[i]);
    }
    return repositoryAdmin.getHelper().repository(newResources);
}
Also used : ResourceWrapper(org.apache.aries.application.resolver.obr.impl.ResourceWrapper) PlatformRepository(org.apache.aries.application.management.spi.repository.PlatformRepository) Repository(org.apache.felix.bundlerepository.Repository) ModelledBundleResource(org.apache.aries.application.resolver.obr.ext.ModelledBundleResource) ModelledResource(org.apache.aries.application.modelling.ModelledResource) Resource(org.apache.felix.bundlerepository.Resource) ResolveConstraint(org.apache.aries.application.management.ResolveConstraint)

Aggregations

ResolveConstraint (org.apache.aries.application.management.ResolveConstraint)1 PlatformRepository (org.apache.aries.application.management.spi.repository.PlatformRepository)1 ModelledResource (org.apache.aries.application.modelling.ModelledResource)1 ModelledBundleResource (org.apache.aries.application.resolver.obr.ext.ModelledBundleResource)1 ResourceWrapper (org.apache.aries.application.resolver.obr.impl.ResourceWrapper)1 Repository (org.apache.felix.bundlerepository.Repository)1 Resource (org.apache.felix.bundlerepository.Resource)1