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);
}
Aggregations