use of org.apache.aries.subsystem.core.archive.SubsystemTypeHeader in project aries by apache.
the class RawSubsystemResource method computeSubsystemTypeHeader.
private SubsystemTypeHeader computeSubsystemTypeHeader(SubsystemManifest manifest) {
SubsystemTypeHeader header = manifest.getSubsystemTypeHeader();
AriesProvisionDependenciesDirective directive = header.getAriesProvisionDependenciesDirective();
if (directive != null) {
// manifest. Validation of the value occurs later.
return header;
}
// The directive was not specified in the original manifest. The value
// of the parent directive becomes the default.
SubsystemManifest parentManifest = ((BasicSubsystem) parentSubsystem).getSubsystemManifest();
SubsystemTypeHeader parentHeader = parentManifest.getSubsystemTypeHeader();
directive = parentHeader.getAriesProvisionDependenciesDirective();
header = new SubsystemTypeHeader(header.getValue() + ';' + directive);
return header;
}
Aggregations