use of io.fabric8.agent.resolver.ResourceUtils.addIdentityRequirement in project fabric8 by jboss-fuse.
the class Subsystem method requireFeature.
public void requireFeature(String name, String range, boolean mandatory) {
if (mandatory) {
ResourceUtils.addIdentityRequirement(this, name, TYPE_FEATURE, range);
} else {
ResourceImpl res = new ResourceImpl();
ResourceUtils.addIdentityRequirement(res, name, TYPE_FEATURE, range);
dependentFeatures.addAll(res.getRequirements(null));
}
}
Aggregations