use of org.springframework.beans.factory.annotation.Autowired in project cas by apereo.
the class CasCoreAuthenticationConfiguration method authenticationEventExecutionPlan.
@ConditionalOnMissingBean(name = "authenticationEventExecutionPlan")
@Autowired
@Bean
public AuthenticationEventExecutionPlan authenticationEventExecutionPlan(final List<AuthenticationEventExecutionPlanConfigurer> configurers) {
final DefaultAuthenticationEventExecutionPlan plan = new DefaultAuthenticationEventExecutionPlan();
configurers.forEach(c -> {
final String name = StringUtils.removePattern(c.getClass().getSimpleName(), "\\$.+");
LOGGER.debug("Configuring authentication execution plan [{}]", name);
c.configureAuthenticationExecutionPlan(plan);
});
return plan;
}
use of org.springframework.beans.factory.annotation.Autowired in project cas by apereo.
the class CasCoreTicketsConfiguration method ticketCatalog.
@ConditionalOnMissingBean(name = "ticketCatalog")
@Autowired
@Bean
public TicketCatalog ticketCatalog(final List<TicketCatalogConfigurer> configurers) {
final DefaultTicketCatalog plan = new DefaultTicketCatalog();
configurers.forEach(c -> {
final String name = StringUtils.removePattern(c.getClass().getSimpleName(), "\\$.+");
LOGGER.debug("Configuring ticket metadata registration plan [{}]", name);
c.configureTicketCatalog(plan);
});
return plan;
}
use of org.springframework.beans.factory.annotation.Autowired in project cas by apereo.
the class CasCoreConfiguration method authenticationServiceSelectionPlan.
@ConditionalOnMissingBean(name = "authenticationServiceSelectionPlan")
@Autowired
@Bean
public AuthenticationServiceSelectionPlan authenticationServiceSelectionPlan(final List<AuthenticationServiceSelectionStrategyConfigurer> configurers) {
final DefaultAuthenticationServiceSelectionPlan plan = new DefaultAuthenticationServiceSelectionPlan();
configurers.forEach(c -> {
final String name = StringUtils.removePattern(c.getClass().getSimpleName(), "\\$.+");
LOGGER.debug("Configuring authentication request service selection strategy plan [{}]", name);
c.configureAuthenticationServiceSelectionStrategy(plan);
});
return plan;
}
use of org.springframework.beans.factory.annotation.Autowired in project cas by apereo.
the class GoogleAuthenticatorJpaConfiguration method transactionManagerGoogleAuthenticator.
@Autowired
@Bean
public PlatformTransactionManager transactionManagerGoogleAuthenticator(@Qualifier("googleAuthenticatorEntityManagerFactory") final EntityManagerFactory emf) {
final JpaTransactionManager mgmr = new JpaTransactionManager();
mgmr.setEntityManagerFactory(emf);
return mgmr;
}
use of org.springframework.beans.factory.annotation.Autowired in project cas by apereo.
the class JpaEventsConfiguration method transactionManagerEvents.
@Autowired
@Bean
public PlatformTransactionManager transactionManagerEvents(@Qualifier("eventsEntityManagerFactory") final EntityManagerFactory emf) {
final JpaTransactionManager mgmr = new JpaTransactionManager();
mgmr.setEntityManagerFactory(emf);
return mgmr;
}
Aggregations