-
Notifications
You must be signed in to change notification settings - Fork 174
/
provisioningContext.xml
123 lines (107 loc) · 5.79 KB
/
provisioningContext.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task.xsd">
<context:component-scan base-package="org.apache.syncope.core.provisioning.java"/>
<!-- Used by AsyncConnectorFacade -->
<task:annotation-driven executor="asyncConnectorFacadeExecutor"/>
<task:executor id="asyncConnectorFacadeExecutor"
pool-size="${asyncConnectorFacadeExecutor.poolSize}"
queue-capacity="${asyncConnectorFacadeExecutor.queueCapacity}"
rejection-policy="ABORT"/>
<!-- Used by PriorityPropagationTaskExecutor -->
<task:executor id="propagationTaskExecutorAsyncExecutor"
pool-size="${propagationTaskExecutorAsyncExecutor.poolSize}"
queue-capacity="${propagationTaskExecutorAsyncExecutor.queueCapacity}"
rejection-policy="ABORT"/>
<bean class="${propagationTaskExecutor}"/>
<bean class="${userProvisioningManager}"/>
<bean class="${groupProvisioningManager}"/>
<bean class="${anyObjectProvisioningManager}"/>
<bean class="${notificationManager}"/>
<bean class="${auditManager}"/>
<bean id="quartzDataSourceInit" class="org.apache.syncope.core.provisioning.java.job.SchedulerDBInit">
<property name="dataSource" ref="MasterDataSource"/>
<property name="databasePopulator">
<bean class="org.springframework.jdbc.datasource.init.ResourceDatabasePopulator">
<property name="continueOnError" value="true"/>
<property name="ignoreFailedDrops" value="true"/>
<property name="sqlScriptEncoding" value="UTF-8"/>
<property name="scripts">
<array>
<value type="org.springframework.core.io.Resource">
classpath:/quartz/${quartz.sql}
</value>
</array>
</property>
</bean>
</property>
</bean>
<bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"
lazy-init="false" depends-on="quartzDataSourceInit">
<property name="autoStartup" value="true"/>
<property name="applicationContextSchedulerContextKey" value="applicationContext"/>
<property name="waitForJobsToCompleteOnShutdown" value="true"/>
<property name="overwriteExistingJobs" value="true"/>
<property name="dataSource" ref="MasterDataSource"/>
<property name="transactionManager" ref="MasterTransactionManager"/>
<property name="jobFactory">
<bean class="org.apache.syncope.core.provisioning.java.job.SyncopeSpringBeanJobFactory"/>
</property>
<property name="quartzProperties">
<props>
<prop key="org.quartz.scheduler.idleWaitTime">${quartz.scheduler.idleWaitTime:30000}</prop>
<prop key="org.quartz.jobStore.misfireThreshold">${quartz.misfireThreshold:60000}</prop>
<prop key="org.quartz.jobStore.driverDelegateClass">${quartz.jobstore}</prop>
<prop key="org.quartz.jobStore.isClustered">true</prop>
<prop key="org.quartz.jobStore.clusterCheckinInterval">20000</prop>
<prop key="org.quartz.scheduler.instanceName">ClusteredScheduler</prop>
<prop key="org.quartz.scheduler.instanceId">AUTO</prop>
<prop key="org.quartz.scheduler.jmx.export">true</prop>
</props>
</property>
</bean>
<bean class="org.apache.syncope.core.provisioning.java.job.SchedulerShutdown"/>
<bean class="org.apache.syncope.core.provisioning.java.job.JobManagerImpl">
<property name="disableQuartzInstance" value="${quartz.disableInstance:false}"/>
</bean>
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="defaultEncoding" value="${smtpEncoding}"/>
<property name="host" value="${smtpHost}"/>
<property name="port" value="${smtpPort}"/>
<property name="username" value="${smtpUser}"/>
<property name="password" value="${smtpPassword}"/>
<property name="protocol" value="${smtpProtocol}"/>
</bean>
<bean class="org.apache.syncope.core.provisioning.java.propagation.PropagationManagerImpl"/>
<bean id="virAttrCache" class="${virAttrCache}" scope="singleton">
<property name="cacheSpec" value="${virAttrCacheSpec:maximumSize=5000,expireAfterAccess=1m}"/>
</bean>
<bean id="connIdBundleManager" class="org.apache.syncope.core.provisioning.java.ConnIdBundleManagerImpl">
<property name="stringLocations" value="${connid.locations}"/>
</bean>
<bean class="org.apache.syncope.core.provisioning.api.IntAttrNameParser"/>
</beans>