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

ec.gob.senescyt.sniese.commons.bundles.audit.AuditoriaMethodDispatcherAdapter Maven / Gradle / Ivy

There is a newer version: 2.0.5
Show newest version
package ec.gob.senescyt.sniese.commons.bundles.audit;

import com.sun.jersey.spi.container.ResourceMethodDispatchAdapter;
import com.sun.jersey.spi.container.ResourceMethodDispatchProvider;
import ec.gob.senescyt.sniese.commons.security.PrincipalProvider;

public class AuditoriaMethodDispatcherAdapter implements ResourceMethodDispatchAdapter {

    private PrincipalProvider principalProvider;
    private AuditoriaWriter auditoriaWriter;

    public AuditoriaMethodDispatcherAdapter(PrincipalProvider principalProvider, AuditoriaWriter auditoriaWriter) {
        this.principalProvider = principalProvider;
        this.auditoriaWriter = auditoriaWriter;
    }

    @Override
    public ResourceMethodDispatchProvider adapt(ResourceMethodDispatchProvider provider) {
        return new ProveedorAuditoria(provider, principalProvider, auditoriaWriter);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy