@Override protected CapabilityScope createIncludedContext(String name) { return new SocketBindingGroupChildScope(name); } }
@Override public boolean canSatisfyRequirement(String requiredName, CapabilityScope dependentScope, CapabilityResolutionContext context) { boolean result; if (dependentScope instanceof SocketBindingGroupChildScope) { result = equals(dependentScope); if (!result) { Set<CapabilityScope> includers = getIncludingScopes(context); result = includers.contains(dependentScope); } } else { result = !(dependentScope instanceof ProfilesCapabilityScope) && !(dependentScope instanceof ServerGroupsCapabilityScope); } return result; }
@Override public boolean canSatisfyRequirement(String requiredName, CapabilityScope dependentScope, CapabilityResolutionContext context) { boolean result; if (dependentScope instanceof SocketBindingGroupChildScope) { result = equals(dependentScope); if (!result) { Set<CapabilityScope> includers = getIncludingScopes(context); result = includers.contains(dependentScope); } } else { result = !(dependentScope instanceof ProfilesCapabilityScope) && !(dependentScope instanceof ServerGroupsCapabilityScope); } return result; }
@Override protected CapabilityScope createIncludedContext(String name) { return new SocketBindingGroupChildScope(name); } }
context = dynamic ? new SocketBindingGroupChildScope(value) : SocketBindingGroupsCapabilityScope.INSTANCE; break;
context = dynamic ? new SocketBindingGroupChildScope(value) : SocketBindingGroupsCapabilityScope.INSTANCE; break;
context = address.size() == 1 ? SocketBindingGroupsCapabilityScope.INSTANCE : new SocketBindingGroupChildScope(pe.getValue()); break;
context = address.size() == 1 ? SocketBindingGroupsCapabilityScope.INSTANCE : new SocketBindingGroupChildScope(pe.getValue()); break;