Java 类org.springframework.boot.actuate.security.AbstractAuthorizationAuditListener 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AuditAutoConfigurationTests.java   
@Test
public void ownAuthorizationAuditListener() throws Exception {
    registerAndRefresh(CustomAuthorizationAuditListenerConfiguration.class,
            AuditAutoConfiguration.class);
    assertThat(this.context.getBean(AbstractAuthorizationAuditListener.class))
            .isInstanceOf(TestAuthorizationAuditListener.class);
}
项目:spring-boot-concourse    文件:AuditAutoConfigurationTests.java   
@Test
public void ownAuthorizationAuditListener() throws Exception {
    registerAndRefresh(CustomAuthorizationAuditListenerConfiguration.class,
            AuditAutoConfiguration.class);
    assertThat(this.context.getBean(AbstractAuthorizationAuditListener.class))
            .isInstanceOf(TestAuthorizationAuditListener.class);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AuditAutoConfiguration.java   
@Bean
@ConditionalOnClass(name = "org.springframework.security.access.event.AbstractAuthorizationEvent")
@ConditionalOnMissingBean(AbstractAuthorizationAuditListener.class)
public AuthorizationAuditListener authorizationAuditListener() throws Exception {
    return new AuthorizationAuditListener();
}
项目:spring-boot-concourse    文件:AuditAutoConfiguration.java   
@Bean
@ConditionalOnClass(name = "org.springframework.security.access.event.AbstractAuthorizationEvent")
@ConditionalOnMissingBean(AbstractAuthorizationAuditListener.class)
public AuthorizationAuditListener authorizationAuditListener() throws Exception {
    return new AuthorizationAuditListener();
}