/** * Must be called under lock * * @param descriptor The descriptor to validate * @param onBehalfOf The fella who is being validated (or null) * @return true if every validator returned true */ private boolean validate(SystemDescriptor<?> descriptor, Injectee onBehalfOf, Filter filter) { for (ValidationService vs : getAllValidators()) { if (!descriptor.isValidating(vs)) continue; if (!callValidate(vs, new ValidationInformationImpl( Operation.LOOKUP, descriptor, onBehalfOf, filter))) { return false; } } return true; }
/** * Must be called under lock * * @param descriptor The descriptor to validate * @param onBehalfOf The fella who is being validated (or null) * @return true if every validator returned true */ private boolean validate(SystemDescriptor<?> descriptor, Injectee onBehalfOf, Filter filter) { for (ValidationService vs : getAllValidators()) { if (!descriptor.isValidating(vs)) continue; if (!callValidate(vs, new ValidationInformationImpl( Operation.LOOKUP, descriptor, onBehalfOf, filter))) { return false; } } return true; }
/** * Must be called under lock * * @param descriptor The descriptor to validate * @param onBehalfOf The fella who is being validated (or null) * @return true if every validator returned true */ private boolean validate(SystemDescriptor<?> descriptor, Injectee onBehalfOf, Filter filter) { for (ValidationService vs : getAllValidators()) { if (!descriptor.isValidating(vs)) continue; if (!callValidate(vs, new ValidationInformationImpl( Operation.LOOKUP, descriptor, onBehalfOf, filter))) { return false; } } return true; }
/** * Must be called under lock * * @param descriptor The descriptor to validate * @param onBehalfOf The fella who is being validated (or null) * @return true if every validator returned true */ private boolean validate(SystemDescriptor<?> descriptor, Injectee onBehalfOf, Filter filter) { for (ValidationService vs : getAllValidators()) { if (!descriptor.isValidating(vs)) continue; if (!callValidate(vs, new ValidationInformationImpl( Operation.LOOKUP, descriptor, onBehalfOf, filter))) { return false; } } return true; }
if (!callValidate(vs, new ValidationInformationImpl( Operation.UNBIND, candidate))) { throw new MultiException(new IllegalArgumentException("Descriptor " + if (!callValidate(vs, new ValidationInformationImpl( Operation.BIND, sd))) { throw new MultiException(new IllegalArgumentException("Descriptor " + sd + " did not pass the BIND validation"));
if (!callValidate(vs, new ValidationInformationImpl( Operation.UNBIND, candidate))) { throw new MultiException(new IllegalArgumentException("Descriptor " + if (!callValidate(vs, new ValidationInformationImpl( Operation.BIND, sd))) { throw new MultiException(new IllegalArgumentException("Descriptor " + sd + " did not pass the BIND validation"));
if (!callValidate(vs, new ValidationInformationImpl( Operation.UNBIND, candidate))) { throw new MultiException(new IllegalArgumentException("Descriptor " + if (!callValidate(vs, new ValidationInformationImpl( Operation.BIND, sd))) { throw new MultiException(new IllegalArgumentException("Descriptor " + sd + " did not pass the BIND validation"));
if (!callValidate(vs, new ValidationInformationImpl( Operation.UNBIND, candidate))) { throw new MultiException(new IllegalArgumentException("Descriptor " + if (!callValidate(vs, new ValidationInformationImpl( Operation.BIND, sd))) { throw new MultiException(new IllegalArgumentException("Descriptor " + sd + " did not pass the BIND validation"));