Search in sources :

Example 1 with RequireBundleRequirement

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);
    }
}
Also used : RequireBundleHeader(org.apache.aries.subsystem.core.archive.RequireBundleHeader) RequireBundleRequirement(org.apache.aries.subsystem.core.archive.RequireBundleRequirement)

Aggregations

RequireBundleHeader (org.apache.aries.subsystem.core.archive.RequireBundleHeader)1 RequireBundleRequirement (org.apache.aries.subsystem.core.archive.RequireBundleRequirement)1