All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zandero.rest.cache.AuthenticationProvidersCache Maven / Gradle / Ivy

The newest version!
package com.zandero.rest.cache;

import com.zandero.rest.authentication.*;
import com.zandero.rest.data.*;
import com.zandero.rest.exception.*;
import com.zandero.rest.injection.*;
import io.vertx.ext.web.*;

public class AuthenticationProvidersCache extends ClassCache {

    public AuthenticationProvidersCache() {
        clear();
    }

    public RestAuthenticationProvider provide(Class authenticationProvider,
                                              InjectionProvider provider,
                                              RoutingContext context) throws ClassFactoryException, ContextException {
        return (RestAuthenticationProvider) ClassFactory.getClassInstance(authenticationProvider,
                                                                          this,
                                                                          provider,
                                                                          context);
    }

    public void register(Class aClass, Class clazz) {
        super.registerTypeByAssociatedType(aClass, clazz);
    }

    public void register(Class aClass, RestAuthenticationProvider instance) {
        super.registerInstanceByAssociatedType(aClass, instance);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy