-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin-context.xml
135 lines (134 loc) · 8.49 KB
/
plugin-context.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
124
125
126
127
128
129
130
131
132
133
134
135
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.1.xsd">
<osgi:service id="ao-module-descriptor-factory" interface="com.atlassian.plugin.osgi.external.ListableModuleDescriptorFactory">
<bean class="com.atlassian.activeobjects.plugin.ActiveObjectsModuleDescriptorFactory">
<constructor-arg index="0" ref="moduleFactory" />
<constructor-arg index="1">
<bean class="com.atlassian.plugin.osgi.bridge.external.SpringHostContainer" />
</constructor-arg>
<constructor-arg index="2" ref="activeObjectsConfigurationFactory" />
<constructor-arg index="3" ref="osgiUtils" />
<constructor-arg index="4" ref="pluginToTablesMapping" />
<constructor-arg index="5">
<bean class="com.atlassian.activeobjects.NamesLengthAndOracleReservedWordsEntitiesValidator" />
</constructor-arg>
</bean>
</osgi:service>
<osgi:service id="ao" interface="com.atlassian.activeobjects.external.ActiveObjects" ref="activeObjectsServiceFactory" />
<osgi:reference id="pluginAccessor" interface="com.atlassian.plugin.PluginAccessor" />
<osgi:service id="backup" ref="aoBackup" interface="com.atlassian.activeobjects.spi.Backup" />
<bean id="activeObjectsConfigurationFactory" class="com.atlassian.activeobjects.config.internal.DefaultActiveObjectsConfigurationFactory">
<constructor-arg index="0">
<bean class="com.atlassian.activeobjects.util.HexMd5Digester" />
</constructor-arg>
<constructor-arg index="1">
<bean class="com.atlassian.activeobjects.internal.config.ActiveObjectsNameConvertersFactory">
<constructor-arg ref="fieldNameConverter" />
<constructor-arg ref="sequenceNameConverter" />
<constructor-arg ref="triggerNameConverter" />
<constructor-arg ref="indexNameConverter" />
<constructor-arg ref="uniqueNameConverter" />
</bean>
</constructor-arg>
<constructor-arg index="2">
<bean class="com.atlassian.activeobjects.internal.DataSourceTypeResolverImpl">
<constructor-arg index="0" ref="pluginSettingsFactory" />
<constructor-arg index="1" ref="settingKeys" />
<constructor-arg index="2" value="APPLICATION" />
</bean>
</constructor-arg>
</bean>
<bean id="activeObjectsConfigurationServiceProvider" class="com.atlassian.activeobjects.osgi.AOConfigurationServiceProviderImpl">
<constructor-arg index="0" ref="osgiUtils" />
<constructor-arg index="1" ref="activeObjectsConfigurationFactory" />
<constructor-arg index="2">
<bean class="com.atlassian.activeobjects.spring.ApplicationContextFactoryBean" />
</constructor-arg>
<constructor-arg index="3" ref="bundleContext" />
</bean>
<bean id="activeObjectsServiceFactory" class="com.atlassian.activeobjects.osgi.ActiveObjectsServiceFactory">
<constructor-arg index="0" ref="activeObjectsFactory" />
<constructor-arg index="1" ref="activeObjectsConfigurationServiceProvider" />
<constructor-arg index="2" ref="eventPublisher" />
<constructor-arg index="3" ref="aoSynchronizationManager" />
<constructor-arg index="4" ref="dataSourceProvider" />
<constructor-arg index="5" ref="transactionTemplate" />
</bean>
<bean id="fieldNameConverter" class="net.java.ao.atlassian.AtlassianFieldNameConverter" />
<bean id="sequenceNameConverter" class="net.java.ao.atlassian.AtlassianSequenceNameConverter" />
<bean id="triggerNameConverter" class="net.java.ao.atlassian.AtlassianTriggerNameConverter" />
<bean id="indexNameConverter" class="net.java.ao.atlassian.AtlassianIndexNameConverter" />
<bean id="uniqueNameConverter" class="net.java.ao.atlassian.AtlassianUniqueNameConverter" />
<bean id="aoBackup" class="com.atlassian.activeobjects.backup.ActiveObjectsBackup">
<constructor-arg ref="databaseProviderFactory" />
<constructor-arg ref="dataSourceProvider" />
<constructor-arg>
<bean class="net.java.ao.builder.SimpleNameConverters">
<constructor-arg index="0">
<bean class="com.atlassian.activeobjects.backup.ExceptionThrowingTableNameConverter" />
</constructor-arg>
<constructor-arg index="1" ref="fieldNameConverter" />
<constructor-arg index="2" ref="sequenceNameConverter" />
<constructor-arg index="3" ref="triggerNameConverter" />
<constructor-arg index="4" ref="indexNameConverter" />
<constructor-arg index="5" ref="uniqueNameConverter" />
</bean>
</constructor-arg>
<constructor-arg ref="errorService" />
</bean>
<bean id="errorService" class="com.atlassian.activeobjects.backup.ImportExportErrorServiceImpl">
<constructor-arg ref="pluginInformationFactory" />
</bean>
<bean id="pluginInformationFactory" class="com.atlassian.activeobjects.backup.PluginInformationFactory">
<constructor-arg ref="pluginToTablesMapping" />
<constructor-arg ref="pluginAccessor" />
</bean>
<bean id="pluginToTablesMapping" class="com.atlassian.activeobjects.admin.ActiveObjectsPluginToTablesMapping">
<constructor-arg ref="pluginSettingsFactory" />
</bean>
<bean id="aoPluginConfiguration" class="com.atlassian.activeobjects.config.internal.DefaultActiveObjectsPluginConfiguration">
<constructor-arg>
<osgi:reference id="activeObjectsConfiguration" interface="com.atlassian.activeobjects.spi.ActiveObjectsPluginConfiguration" cardinality="0..1" timeout="5000" />
</constructor-arg>
</bean>
<bean id="osgiUtils" class="com.atlassian.activeobjects.osgi.OsgiServiceUtilsImpl" />
<bean id="activeObjectsFactory" class="com.atlassian.activeobjects.internal.DelegatingActiveObjectsFactory">
<constructor-arg index="0">
<list>
<bean class="com.atlassian.activeobjects.internal.DatabaseDirectoryAwareActiveObjectsFactory">
<constructor-arg index="0" ref="aoUpgradeManager" />
<constructor-arg index="1" ref="applicationProperties" />
<constructor-arg index="2" ref="aoPluginConfiguration" />
<constructor-arg index="3" ref="transactionTemplate" />
</bean>
<bean class="com.atlassian.activeobjects.internal.DataSourceProviderActiveObjectsFactory" autowire="byName">
<constructor-arg index="0" ref="aoUpgradeManager" />
<constructor-arg index="1">
<bean class="com.atlassian.activeobjects.internal.EntityManagerFactoryImpl">
<constructor-arg index="0" ref="databaseProviderFactory" />
</bean>
</constructor-arg>
<constructor-arg index="2" ref="dataSourceProvider" />
<constructor-arg index="3" ref="transactionTemplate" />
<property name="transactionSynchronizationManager" ref="aoSynchronizationManager" />
</bean>
</list>
</constructor-arg>
</bean>
<bean id="aoUpgradeManager" class="com.atlassian.activeobjects.internal.ActiveObjectUpgradeManagerImpl">
<constructor-arg index="0">
<bean class="com.atlassian.activeobjects.internal.SalModelVersionManager">
<constructor-arg index="0">
<osgi:reference interface="com.atlassian.sal.api.pluginsettings.PluginSettingsFactory" />
</constructor-arg>
<constructor-arg index="1" ref="settingKeys" />
</bean>
</constructor-arg>
</bean>
<bean id="settingKeys" class="com.atlassian.activeobjects.internal.ActiveObjectsSettingKeys" />
<bean id="databaseProviderFactory" class="com.atlassian.activeobjects.internal.JdbcDriverDatabaseProviderFactory">
<constructor-arg>
<bean class="com.atlassian.activeobjects.internal.DriverNameExtractorImpl" />
</constructor-arg>
</bean>
</beans>