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

autoconfigure.com.pannoniaexpertise.audit.AuditAutoConfiguration Maven / Gradle / Ivy

The newest version!
package autoconfigure.com.pannoniaexpertise.audit;

import com.pannoniaexpertise.audit.AuditUsernameProvider;
import com.pannoniaexpertise.audit.usernameProviders.UsernameProvider;
import java.util.List;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("com.pannoniaexpertise.audit.*")
public class AuditAutoConfiguration {

  @Bean
  @ConditionalOnMissingBean
  public AuditUsernameProvider provider(List usernameProviders) {
    return new PrincipalUsernameProvider(usernameProviders);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy