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

org.apereo.cas.config.CasEclipseLinkJpaConfiguration Maven / Gradle / Ivy

package org.apereo.cas.config;

import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.eclipselink.CasEclipseLinkJpaBeanFactory;
import org.apereo.cas.jpa.JpaBeanFactory;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ScopedProxyMode;

/**
 * This is {@link CasEclipseLinkJpaConfiguration}.
 *
 * @author Misagh Moayyed
 * @since 6.2.0
 */
@Configuration(value = "CasEclipseLinkJpaConfiguration", proxyBeanMethods = false)
@EnableConfigurationProperties(CasConfigurationProperties.class)
public class CasEclipseLinkJpaConfiguration {
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @Bean
    public JpaBeanFactory jpaBeanFactory() {
        return new CasEclipseLinkJpaBeanFactory();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy