Search in sources :

Example 1 with ResourceUtils.addIdentityRequirement

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));
    }
}
Also used : ResourceImpl(io.fabric8.agent.resolver.ResourceImpl)

Aggregations

ResourceImpl (io.fabric8.agent.resolver.ResourceImpl)1