Search in sources :

Example 1 with ImportPackageRequirement

use of org.apache.aries.subsystem.core.archive.ImportPackageRequirement in project aries by apache.

the class SubsystemResource method setImportIsolationPolicy.

private void setImportIsolationPolicy(RegionFilterBuilder builder, ImportPackageHeader header) throws InvalidSyntaxException {
    String policy = RegionFilter.VISIBLE_PACKAGE_NAMESPACE;
    if (header == null)
        return;
    for (ImportPackageHeader.Clause clause : header.getClauses()) {
        ImportPackageRequirement requirement = new ImportPackageRequirement(clause, this);
        String filter = requirement.getDirectives().get(ImportPackageRequirement.DIRECTIVE_FILTER);
        builder.allow(policy, filter);
    }
}
Also used : ImportPackageRequirement(org.apache.aries.subsystem.core.archive.ImportPackageRequirement) ImportPackageHeader(org.apache.aries.subsystem.core.archive.ImportPackageHeader)

Aggregations

ImportPackageHeader (org.apache.aries.subsystem.core.archive.ImportPackageHeader)1 ImportPackageRequirement (org.apache.aries.subsystem.core.archive.ImportPackageRequirement)1