Search in sources :

Example 1 with SubsystemImportServiceRequirement

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

the class SubsystemResource method setImportIsolationPolicy.

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

Aggregations

SubsystemImportServiceHeader (org.apache.aries.subsystem.core.archive.SubsystemImportServiceHeader)1 SubsystemImportServiceRequirement (org.apache.aries.subsystem.core.archive.SubsystemImportServiceRequirement)1