connector/src/main/java/org/jboss/as/connector/util/WildFlyProviderResolver.java
@Override
    public List<ValidationProvider<?>> getValidationProviders() {
        // first try the TCCL
        List<ValidationProvider<?>> providers = loadProviders(WildFlySecurityManager.getCurrentContextClassLoaderPrivileged());

        if (providers != null && !providers.isEmpty()) {
            return providers;
        }
        // otherwise use the loader of this class
        else {
            return loadProviders(WildFlySecurityManager.getClassLoaderPrivileged(WildFlyProviderResolver.class));
        }
    }
@Override
    public List<ValidationProvider<?>> getValidationProviders() {
        // first try the TCCL
        List<ValidationProvider<?>> providers = loadProviders(WildFlySecurityManager.getCurrentContextClassLoaderPrivileged());

        if (providers != null && !providers.isEmpty()) {
            return providers;
        }
        // otherwise use the loader of this class
        else {
            return loadProviders(WildFlySecurityManager.getClassLoaderPrivileged(WildFlyProviderResolver.class));
        }
    }
@ Override public List < ValidationProvider < ? > > getValidationProviders ( ) { // first try the TCCL List < ValidationProvider < ? > > providers = loadProviders ( WildFlySecurityManager . getCurrentContextClassLoaderPrivileged ( ) ) ; if ( providers != null && ! providers . isEmpty ( ) ) { return providers ; } // otherwise use the loader of this class else { return loadProviders ( WildFlySecurityManager . getClassLoaderPrivileged ( WildFlyProviderResolver . class ) ) ; } }
Returns a list with all {@link ValidationProvider} validation providers.

@return a list with all {@link ValidationProvider} validation providers
Returns a list with all { @link ValidationProvider } validation providers .