use of org.apache.aries.subsystem.core.archive.RequireBundleRequirement in project aries by apache.
the class SubsystemResource method setImportIsolationPolicy.
private void setImportIsolationPolicy(RegionFilterBuilder builder, RequireBundleHeader header) throws InvalidSyntaxException {
if (header == null)
return;
for (RequireBundleHeader.Clause clause : header.getClauses()) {
RequireBundleRequirement requirement = new RequireBundleRequirement(clause, this);
String policy = RegionFilter.VISIBLE_REQUIRE_NAMESPACE;
String filter = requirement.getDirectives().get(RequireBundleRequirement.DIRECTIVE_FILTER);
builder.allow(policy, filter);
}
}
Aggregations