Class MasterDomain
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.MasterDomain
-
@EnableConfigurationProperties(PersistenceProperties.class) @Configuration(proxyBeanMethods=false) public class MasterDomain extends Object
-
-
Constructor Summary
Constructors Constructor Description MasterDomain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
masterContentXML(ResourceLoader resourceLoader, PersistenceProperties props)
String
masterDatabaseSchema(PersistenceProperties props)
JndiObjectFactoryBean
masterDataSource(PersistenceProperties props)
DataSourceInitializer
masterDataSourceInitializer(PersistenceProperties props, JndiObjectFactoryBean masterDataSource)
DomainEntityManagerFactoryBean
masterEntityManagerFactory(PersistenceProperties props, JndiObjectFactoryBean masterDataSource, CommonEntityManagerFactoryConf commonEMFConf)
InputStream
masterKeymasterConfParamsJSON(ResourceLoader resourceLoader, PersistenceProperties props)
PlatformTransactionManager
transactionManager(DomainEntityManagerFactoryBean masterEntityManagerFactory)
TransactionTemplate
transactionTemplate(PlatformTransactionManager masterTransactionManager)
-
-
-
Method Detail
-
masterDataSource
@ConditionalOnMissingBean(name="MasterDataSource") @Bean(name="MasterDataSource") public JndiObjectFactoryBean masterDataSource(PersistenceProperties props)
-
masterDataSourceInitializer
@ConditionalOnMissingBean(name="MasterDataSourceInitializer") @Bean(name="MasterDataSourceInitializer") public DataSourceInitializer masterDataSourceInitializer(PersistenceProperties props, @Qualifier("MasterDataSource") JndiObjectFactoryBean masterDataSource)
-
masterEntityManagerFactory
@ConditionalOnMissingBean(name="MasterEntityManagerFactory") @DependsOn("commonEMFConf") @Bean(name="MasterEntityManagerFactory") public DomainEntityManagerFactoryBean masterEntityManagerFactory(PersistenceProperties props, @Qualifier("MasterDataSource") JndiObjectFactoryBean masterDataSource, CommonEntityManagerFactoryConf commonEMFConf)
-
transactionManager
@ConditionalOnMissingBean(name="MasterTransactionManager") @Bean(name={"MasterTransactionManager","Master"}) public PlatformTransactionManager transactionManager(@Qualifier("MasterEntityManagerFactory") DomainEntityManagerFactoryBean masterEntityManagerFactory)
-
transactionTemplate
@ConditionalOnMissingBean(name="MasterTransactionTemplate") @Bean(name="MasterTransactionTemplate") public TransactionTemplate transactionTemplate(@Qualifier("MasterTransactionManager") PlatformTransactionManager masterTransactionManager)
-
masterContentXML
@Bean(name="MasterContentXML") public InputStream masterContentXML(ResourceLoader resourceLoader, PersistenceProperties props) throws IOException
- Throws:
IOException
-
masterKeymasterConfParamsJSON
@Bean(name="MasterKeymasterConfParamsJSON") public InputStream masterKeymasterConfParamsJSON(ResourceLoader resourceLoader, PersistenceProperties props) throws IOException
- Throws:
IOException
-
masterDatabaseSchema
@Bean(name="MasterDatabaseSchema") public String masterDatabaseSchema(PersistenceProperties props)
-
-