public BundleResource (ModelledResource mb, RepositoryAdmin repositoryAdmin) {
logger.debug(LOG_ENTRY,"BundleResource", mb);
_modelledBundle = mb;
_capabilities = new ArrayList<Capability>();
_capabilities.add(new OBRCapability(_modelledBundle.getExportedBundle(), repositoryAdmin));
for (ExportedPackage pkg : _modelledBundle.getExportedPackages()) {
_capabilities.add(new OBRCapability(pkg, repositoryAdmin));
}
for (ExportedService svc : _modelledBundle.getExportedServices()) {
_capabilities.add(new OBRCapability(svc, repositoryAdmin));
}
_requirements = new ArrayList<Requirement>();
for (ImportedPackage pkg : _modelledBundle.getImportedPackages()) {
_requirements.add(new RequirementImpl(pkg));