Examples of ValidatorProvider


Examples of org.apache.jackrabbit.oak.spi.commit.ValidatorProvider

    @Override
    public Object addingService(ServiceReference reference) {
        Object service = context.getService(reference);
        if (service instanceof ValidatorProvider) {
            ValidatorProvider provider = (ValidatorProvider) service;
            providers.put(reference, provider);
            return service;
        } else {
            context.ungetService(reference);
            return null;
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.ValidatorProvider

     * @param validator validator
     * @return this builder
     */
    @Nonnull
    public Oak with(@Nonnull final Validator validator) {
        return with(new ValidatorProvider() {
            @Override @Nonnull
            public Validator getRootValidator(
                    NodeState before, NodeState after) {
                return validator;
            }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.ValidatorProvider

    }

    @Nonnull
    @Override
    public List<ValidatorProvider> getValidatorProviders() {
        ValidatorProvider vp = new PrivilegeValidatorProvider();
        return Collections.singletonList(vp);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.commit.ValidatorProvider

    }

    @Nonnull
    @Override
    public List<ValidatorProvider> getValidatorProviders() {
        ValidatorProvider vp = new UserValidatorProvider(getConfigurationParameters());
        return Collections.singletonList(vp);
    }
View Full Code Here

Examples of org.ocpsoft.rewrite.spi.ValidatorProvider

         Validator validator = null;

         // let one of the SPI implementations build the validator
         Iterator<ValidatorProvider> providers = ServiceLoader.load(ValidatorProvider.class).iterator();
         while (providers.hasNext()) {
            ValidatorProvider provider = providers.next();

            if (targetType != null) {
               validator = provider.getByTargetType(targetType);
            }
            else if (validatorType != null) {
               validator = provider.getByValidatorType(validatorType);
            }
            else {
               validator = provider.getByValidatorId(validatorId);
            }

            if (validator != null) {
               break;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.