Spring configuration clean-up
* Regrouped component definitions into one single file per package in most cases, with a few exceptions * Added documentation about how the configuration is stored and which guidelines should be followed when adding or modifying Spring component configurations.
This commit is contained in:
parent
597429fadf
commit
35d8891fe3
62 changed files with 211 additions and 451 deletions
|
@ -1,24 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<import resource="accounts/account-cleanup-bean.xml" />
|
|
||||||
<import resource="accounts/account-management-bean.xml" />
|
|
||||||
<import resource="accounts/admin-dao-bean.xml" />
|
|
||||||
<import resource="accounts/admin-recap-bean.xml" />
|
|
||||||
<import resource="accounts/administration-bean.xml" />
|
|
||||||
<import resource="accounts/bans-dao-bean.xml" />
|
|
||||||
<import resource="accounts/bans-processor-bean.xml" />
|
|
||||||
<import resource="accounts/default-preferences-bean.xml" />
|
|
||||||
<import resource="accounts/ip-ban-bean.xml" />
|
|
||||||
<import resource="accounts/preference-definitions-bean.xml" />
|
|
||||||
<import resource="accounts/preferences-dao-bean.xml" />
|
|
||||||
<import resource="accounts/quit-processor-bean.xml" />
|
|
||||||
<import resource="accounts/requests-expiration-bean.xml" />
|
|
||||||
<import resource="accounts/user-session-dao-bean.xml" />
|
|
||||||
<import resource="accounts/users-dao-bean.xml" />
|
|
||||||
<import resource="accounts/vacation-processor-bean.xml" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="accountCleanup" class="com.deepclone.lw.beans.acm.AccountCleanupBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="accountManagement" class="com.deepclone.lw.beans.acm.AccountManagementBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="adminDao" class="com.deepclone.lw.beans.admin.AdminDAOBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="administration" class="com.deepclone.lw.beans.admin.AdministrationBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="bansDao" class="com.deepclone.lw.beans.admin.BansDAOBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="bansProcessor" class="com.deepclone.lw.beans.admin.BansProcessorBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="defaultPreferences" class="com.deepclone.lw.beans.prefs.DefaultPreferencesBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="ipBan" class="com.deepclone.lw.beans.admin.IpBanBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="preferenceDefinitions" class="com.deepclone.lw.beans.prefs.PreferenceDefinitionsBean" />
|
|
||||||
<bean id="preferenceTypesRegistry" class="com.deepclone.lw.beans.prefs.PreferenceTypesRegistryBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="preferencesDAO" class="com.deepclone.lw.beans.prefs.PreferencesDAOBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="quitProcessor" class="com.deepclone.lw.beans.acm.QuitProcessorBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="requestsExpiration" class="com.deepclone.lw.beans.acm.RequestsExpirationBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="userSessionDao" class="com.deepclone.lw.beans.acm.UserSessionDAOBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="usersDAO" class="com.deepclone.lw.beans.acm.UsersDAOBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="vacationProcessor" class="com.deepclone.lw.beans.acm.VacationProcessorBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="
|
||||||
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||||
|
|
||||||
|
<bean id="accountCleanup" class="com.deepclone.lw.beans.acm.AccountCleanupBean" />
|
||||||
|
<bean id="accountManagement" class="com.deepclone.lw.beans.acm.AccountManagementBean" />
|
||||||
|
<bean id="adminDao" class="com.deepclone.lw.beans.admin.AdminDAOBean" />
|
||||||
|
<bean id="administration" class="com.deepclone.lw.beans.admin.AdministrationBean" />
|
||||||
|
<bean id="adminRecap" class="com.deepclone.lw.beans.admin.AdminRecapBean" />
|
||||||
|
<bean id="bansDao" class="com.deepclone.lw.beans.admin.BansDAOBean" />
|
||||||
|
<bean id="bansProcessor" class="com.deepclone.lw.beans.admin.BansProcessorBean" />
|
||||||
|
<bean id="defaultPreferences" class="com.deepclone.lw.beans.prefs.DefaultPreferencesBean" />
|
||||||
|
<bean id="ipBan" class="com.deepclone.lw.beans.admin.IpBanBean" />
|
||||||
|
<bean id="preferenceDefinitions" class="com.deepclone.lw.beans.prefs.PreferenceDefinitionsBean" />
|
||||||
|
<bean id="preferencesDAO" class="com.deepclone.lw.beans.prefs.PreferencesDAOBean" />
|
||||||
|
<bean id="preferenceTypesRegistry"
|
||||||
|
class="com.deepclone.lw.beans.prefs.PreferenceTypesRegistryBean" />
|
||||||
|
<bean id="quitProcessor" class="com.deepclone.lw.beans.acm.QuitProcessorBean" />
|
||||||
|
<bean id="requestsExpiration" class="com.deepclone.lw.beans.acm.RequestsExpirationBean" />
|
||||||
|
<bean id="usersDAO" class="com.deepclone.lw.beans.acm.UsersDAOBean" />
|
||||||
|
<bean id="userSessionDao" class="com.deepclone.lw.beans.acm.UserSessionDAOBean" />
|
||||||
|
<bean id="vacationProcessor" class="com.deepclone.lw.beans.acm.VacationProcessorBean" />
|
||||||
|
|
||||||
|
</beans>
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<import resource="bt/admin-bugs-bean.xml" />
|
|
||||||
<import resource="bt/bugs-dao-bean.xml" />
|
|
||||||
<import resource="bt/empire-summary-bean.xml" />
|
|
||||||
<import resource="bt/player-bugs-bean.xml" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="adminBugs" class="com.deepclone.lw.beans.bt.AdminBugsBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="bugsDAO" class="com.deepclone.lw.beans.bt.BugsDAOBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="empireSummary" class="com.deepclone.lw.beans.bt.es.EmpireSummaryBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -2,8 +2,11 @@
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="
|
xsi:schemaLocation="
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||||
|
|
||||||
|
<bean id="adminBugs" class="com.deepclone.lw.beans.bt.AdminBugsBean" />
|
||||||
|
<bean id="bugsDAO" class="com.deepclone.lw.beans.bt.BugsDAOBean" />
|
||||||
|
<bean id="empireSummary" class="com.deepclone.lw.beans.bt.es.EmpireSummaryBean" />
|
||||||
<bean id="playerBugs" class="com.deepclone.lw.beans.bt.PlayerBugsBean" />
|
<bean id="playerBugs" class="com.deepclone.lw.beans.bt.PlayerBugsBean" />
|
||||||
|
|
||||||
</beans>
|
</beans>
|
|
@ -1,12 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<import resource="eventlog/admin-error-mail-bean.xml" />
|
|
||||||
<import resource="eventlog/log-cleaner-bean.xml" />
|
|
||||||
<import resource="eventlog/log-reader-bean.xml" />
|
|
||||||
<import resource="eventlog/log-writer-bean.xml" />
|
|
||||||
<import resource="eventlog/logger-bean.xml" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="adminErrorMail" class="com.deepclone.lw.beans.eventlog.AdminErrorMailBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="logCleaner" class="com.deepclone.lw.beans.eventlog.LogCleanerBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="logReader" class="com.deepclone.lw.beans.eventlog.LogReaderBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="logWriter" class="com.deepclone.lw.beans.eventlog.LogWriterBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="logger" class="com.deepclone.lw.beans.eventlog.LoggerBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="
|
||||||
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||||
|
|
||||||
|
<bean id="adminErrorMail" class="com.deepclone.lw.beans.eventlog.AdminErrorMailBean" />
|
||||||
|
<bean id="logCleaner" class="com.deepclone.lw.beans.eventlog.LogCleanerBean" />
|
||||||
|
<bean id="logger" class="com.deepclone.lw.beans.eventlog.LoggerBean" />
|
||||||
|
<bean id="logReader" class="com.deepclone.lw.beans.eventlog.LogReaderBean" />
|
||||||
|
<bean id="logWriter" class="com.deepclone.lw.beans.eventlog.LogWriterBean" />
|
||||||
|
|
||||||
|
</beans>
|
|
@ -1,10 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<import resource="i18n/i18n-manager-bean.xml" />
|
|
||||||
<import resource="i18n/i18n-translator-bean.xml" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="i18nManager" class="com.deepclone.lw.beans.i18n.I18NManagerBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="i18nTranslator" class="com.deepclone.lw.beans.i18n.TranslatorBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -4,6 +4,7 @@
|
||||||
xsi:schemaLocation="
|
xsi:schemaLocation="
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||||
|
|
||||||
<import resource="game/updates.xml" />
|
<bean id="i18nManager" class="com.deepclone.lw.beans.i18n.I18NManagerBean" />
|
||||||
|
<bean id="i18nTranslator" class="com.deepclone.lw.beans.i18n.TranslatorBean" />
|
||||||
|
|
||||||
</beans>
|
</beans>
|
|
@ -1,10 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<!-- Mailer bean - all properties autowired or defaulted -->
|
|
||||||
<bean id="mailer" class="com.deepclone.lw.beans.mailer.MailerBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -2,9 +2,9 @@
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="
|
xsi:schemaLocation="
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||||
|
|
||||||
<import resource="mailer/mailer-bean.xml" />
|
<bean id="mailer" class="com.deepclone.lw.beans.mailer.MailerBean" />
|
||||||
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
|
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
|
||||||
<property name="host" value="127.0.0.1" />
|
<property name="host" value="127.0.0.1" />
|
||||||
</bean>
|
</bean>
|
|
@ -2,8 +2,9 @@
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="
|
xsi:schemaLocation="
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||||
|
|
||||||
|
<bean id="namesManager" class="com.deepclone.lw.beans.naming.NamesManagerBean" />
|
||||||
<bean id="namingDAO" class="com.deepclone.lw.beans.naming.NamingDAOBean" />
|
<bean id="namingDAO" class="com.deepclone.lw.beans.naming.NamingDAOBean" />
|
||||||
|
|
||||||
</beans>
|
</beans>
|
|
@ -1,10 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<import resource="naming/names-manager-bean.xml" />
|
|
||||||
<import resource="naming/naming-dao-bean.xml" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="namesManager" class="com.deepclone.lw.beans.naming.NamesManagerBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
|
||||||
|
|
||||||
<import resource="game/resources-beans.xml" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -7,15 +7,23 @@
|
||||||
<bean id="authChallengeGenerator" class="com.deepclone.lw.utils.RandomStringGenerator">
|
<bean id="authChallengeGenerator" class="com.deepclone.lw.utils.RandomStringGenerator">
|
||||||
<qualifier value="authChallenges" />
|
<qualifier value="authChallenges" />
|
||||||
<property name="length" value="100" />
|
<property name="length" value="100" />
|
||||||
<property name="characterSet" value="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" />
|
<property name="characterSet"
|
||||||
|
value="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<bean id="constantsManager" class="com.deepclone.lw.beans.sys.ConstantsManagerBean" />
|
||||||
|
<bean id="constantsRegistrar" class="com.deepclone.lw.beans.sys.ConstantsRegistrarBean" />
|
||||||
|
|
||||||
<bean id="sessionIDGenerator" class="com.deepclone.lw.utils.RandomStringGenerator">
|
<bean id="sessionIDGenerator" class="com.deepclone.lw.utils.RandomStringGenerator">
|
||||||
<qualifier value="sessionIdentifiers" />
|
<qualifier value="sessionIdentifiers" />
|
||||||
<property name="length" value="50" />
|
<property name="length" value="50" />
|
||||||
<property name="characterSet" value="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" />
|
<property name="characterSet"
|
||||||
|
value="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="sessionManager" class="com.deepclone.lw.beans.sys.SessionManagerBean" />
|
<bean id="sessionManager" class="com.deepclone.lw.beans.sys.SessionManagerBean" />
|
||||||
|
<bean id="systemStatus" class="com.deepclone.lw.beans.sys.SystemStatusBean" />
|
||||||
|
<bean id="ticker" class="com.deepclone.lw.beans.sys.TickerBean" />
|
||||||
|
<bean id="tickerManager" class="com.deepclone.lw.beans.sys.TickerManagerBean" />
|
||||||
|
|
||||||
</beans>
|
</beans>
|
|
@ -1,12 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<import resource="system/constants-manager-bean.xml" />
|
|
||||||
<import resource="system/constants-registrar-bean.xml" />
|
|
||||||
<import resource="system/ticker-bean.xml" />
|
|
||||||
<import resource="system/session-manager-bean.xml" />
|
|
||||||
<import resource="system/system-status-bean.xml" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="constantsManager" class="com.deepclone.lw.beans.sys.ConstantsManagerBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="constantsRegistrar" class="com.deepclone.lw.beans.sys.ConstantsRegistrarBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="systemStatus" class="com.deepclone.lw.beans.sys.SystemStatusBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,10 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="tickerManager" class="com.deepclone.lw.beans.sys.TickerManagerBean" />
|
|
||||||
<bean id="ticker" class="com.deepclone.lw.beans.sys.TickerBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -2,8 +2,10 @@
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="
|
xsi:schemaLocation="
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||||
|
|
||||||
|
<bean id="objectNameValidator" class="com.deepclone.lw.beans.user.ObjectNameValidatorBean" />
|
||||||
<bean id="sessionCommandWiring" class="com.deepclone.lw.beans.user.abst.SessionCommandWiringBean" />
|
<bean id="sessionCommandWiring" class="com.deepclone.lw.beans.user.abst.SessionCommandWiringBean" />
|
||||||
|
<bean id="sessionSubTypeWiring" class="com.deepclone.lw.beans.user.abst.SessionSubTypeWiringBean" />
|
||||||
|
|
||||||
</beans>
|
</beans>
|
|
@ -4,6 +4,8 @@
|
||||||
xsi:schemaLocation="
|
xsi:schemaLocation="
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
||||||
|
|
||||||
<bean id="adminRecap" class="com.deepclone.lw.beans.admin.AdminRecapBean" />
|
<import resource="session-types/administration.xml" />
|
||||||
|
<import resource="session-types/external.xml" />
|
||||||
|
<import resource="session-types/player.xml" />
|
||||||
|
|
||||||
</beans>
|
</beans>
|
|
@ -1,14 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<import resource="user/admin-session-definer-bean.xml" />
|
|
||||||
<import resource="user/external-session-definer-bean.xml" />
|
|
||||||
<import resource="user/object-name-validator-bean.xml" />
|
|
||||||
<import resource="user/player-session-definer-bean.xml" />
|
|
||||||
<import resource="user/session-command-wiring-bean.xml" />
|
|
||||||
<import resource="user/session-subtype-wiring-bean.xml" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="objectNameValidator" class="com.deepclone.lw.beans.user.ObjectNameValidatorBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="sessionSubTypeWiring" class="com.deepclone.lw.beans.user.abst.SessionSubTypeWiringBean" />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,14 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
||||||
xsi:schemaLocation="
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
|
||||||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
|
|
||||||
|
|
||||||
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
|
||||||
<property name="dataSource" ref="dataSource" />
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<tx:annotation-driven transaction-manager="transactionManager"/>
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -1,11 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<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"
|
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
||||||
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
|
||||||
http://www.springframework.org/schema/context
|
|
||||||
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
|
||||||
|
|
||||||
<context:annotation-config />
|
|
||||||
|
|
||||||
</beans>
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="
|
||||||
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||||
|
|
||||||
|
<!-- ========================================================== -->
|
||||||
|
<!-- Spring configuration loader for all "real" game components -->
|
||||||
|
<!-- ========================================================== -->
|
||||||
|
<import resource="game/resources.xml" />
|
||||||
|
<import resource="game/updates.xml" />
|
||||||
|
|
||||||
|
</beans>
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="
|
||||||
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||||
|
|
||||||
|
<!-- ================================================= -->
|
||||||
|
<!-- Spring configuration loader for "meta" components -->
|
||||||
|
<!-- ================================================= -->
|
||||||
|
<import resource="meta/accounts.xml" />
|
||||||
|
<import resource="meta/bt.xml" />
|
||||||
|
<import resource="meta/eventlog.xml" />
|
||||||
|
<import resource="meta/i18n.xml" />
|
||||||
|
<import resource="meta/mailer.xml" />
|
||||||
|
<import resource="meta/naming.xml" />
|
||||||
|
<import resource="meta/sessions.xml" />
|
||||||
|
<import resource="meta/system.xml" />
|
||||||
|
|
||||||
|
</beans>
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
|
||||||
|
xsi:schemaLocation="
|
||||||
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
||||||
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd">
|
||||||
|
|
||||||
|
<bean id="transactionManager"
|
||||||
|
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
||||||
|
<property name="dataSource" ref="dataSource" />
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<tx:annotation-driven transaction-manager="transactionManager" />
|
||||||
|
|
||||||
|
</beans>
|
|
@ -2,30 +2,31 @@
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
|
||||||
xsi:schemaLocation="
|
xsi:schemaLocation="
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
||||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
|
||||||
|
|
||||||
|
<!-- ================================================== -->
|
||||||
|
<!-- Legacy Worlds server - Spring configuration loader -->
|
||||||
|
<!-- ================================================== -->
|
||||||
|
|
||||||
|
<!-- Use annotations to determine component wiring -->
|
||||||
<context:annotation-config />
|
<context:annotation-config />
|
||||||
|
|
||||||
<!-- Server terminator bean -->
|
<!-- Transaction manager -->
|
||||||
|
<import resource="configuration/transactions.xml" />
|
||||||
|
|
||||||
|
<!-- Server terminator -->
|
||||||
<bean id="terminator" class="com.deepclone.lw.srv.ServerTerminatorBean" />
|
<bean id="terminator" class="com.deepclone.lw.srv.ServerTerminatorBean" />
|
||||||
|
|
||||||
<!-- Load transaction manager -->
|
<!-- "Meta" components -->
|
||||||
<import resource="configuration/transaction-bean.xml" />
|
<import resource="configuration/meta.xml" />
|
||||||
|
|
||||||
<!-- Load all system and low-level beans -->
|
<!-- Session types and command handlers -->
|
||||||
<import resource="configuration/accounts-beans.xml" />
|
<import resource="configuration/session-types.xml" />
|
||||||
<import resource="configuration/bt-beans.xml" />
|
|
||||||
<import resource="configuration/eventlog-beans.xml" />
|
|
||||||
<import resource="configuration/i18n-beans.xml" />
|
|
||||||
<import resource="configuration/mailer-beans.xml" />
|
|
||||||
<import resource="configuration/naming-beans.xml" />
|
|
||||||
<import resource="configuration/system-beans.xml" />
|
|
||||||
<import resource="configuration/user-beans.xml" />
|
|
||||||
|
|
||||||
<!-- Load both the "final" component configuration file and the "simple"
|
<!-- Load both the "final" game file and the "simple" implementation from
|
||||||
implementation from B6M1. -->
|
B6M1. -->
|
||||||
<import resource="configuration/game.xml" />
|
<import resource="configuration/game.xml" />
|
||||||
<import resource="configuration/simple-beans.xml" />
|
<import resource="configuration/simple.xml" />
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
|
|
77
legacyworlds/doc/spring-configuration.txt
Normal file
77
legacyworlds/doc/spring-configuration.txt
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
Spring configuration files
|
||||||
|
===========================
|
||||||
|
|
||||||
|
A lot of the game's code (whether on the server side or on the web clients)
|
||||||
|
relies on the Spring framework. For most of the components, it is easier to
|
||||||
|
use XML configuration files rather than in-code configuration. This file
|
||||||
|
describes the common elements and guidelines to follow for the configuration
|
||||||
|
files.
|
||||||
|
|
||||||
|
|
||||||
|
Files in the main server package:
|
||||||
|
|
||||||
|
lw-server.xml Main configuration file
|
||||||
|
|
||||||
|
This file contains the server's top-level configuration. It enables
|
||||||
|
annotation-based component processing, adds the server termination
|
||||||
|
component, and loads the configuration files for all elements of the
|
||||||
|
server: transaction management, meta components, game components for
|
||||||
|
both the "real" game and the "simple" implementation written for
|
||||||
|
Milestone 1, session type definitions and commands.
|
||||||
|
|
||||||
|
configuration/game.xml "Real" game components
|
||||||
|
|
||||||
|
This file acts as a loader for all configuration files the load
|
||||||
|
elements of the "real" game - that is, parts of the game which have
|
||||||
|
taken (or are taking) the form they should have in the final version.
|
||||||
|
|
||||||
|
configuration/meta.xml Meta components
|
||||||
|
|
||||||
|
This file loads the configuration files for all "meta" components.
|
||||||
|
A "meta" component is any component which is not directly related to
|
||||||
|
the game itself, but it still necessary: for example account
|
||||||
|
management or the bug tracking system fall into this category.
|
||||||
|
|
||||||
|
configuration/transactions.xml Transaction manager configuration
|
||||||
|
|
||||||
|
This file contains the configuration for Spring's transaction
|
||||||
|
management system. It defines the transaction manager and enables
|
||||||
|
annotation-based transaction processing.
|
||||||
|
|
||||||
|
|
||||||
|
Files in general component definition packages:
|
||||||
|
|
||||||
|
Most of the component definition packages will include one single
|
||||||
|
configuration file which loads the components the package defines. This
|
||||||
|
file will be found in either configuration/meta/ or configuration/game/
|
||||||
|
depending on the purpose of the components. The file in question will
|
||||||
|
be loaded from the corresponding file in the main server package.
|
||||||
|
|
||||||
|
|
||||||
|
Files in the legacyworlds-server-beans-simple package:
|
||||||
|
|
||||||
|
This package includes its own top-level configuration file, unsurprisingly
|
||||||
|
named configuration/simple.xml, which is included in the server's top-level
|
||||||
|
configuration and loads all files in the configuration/simple/
|
||||||
|
sub-directory. Since it corresponds to Milestone 1's "simple" game
|
||||||
|
implementation, it should only be modified to remove components as they
|
||||||
|
are moved or replaced.
|
||||||
|
|
||||||
|
|
||||||
|
Files in the legacyworlds-server-beans-user package:
|
||||||
|
|
||||||
|
This package includes a "meta" components configuration file, which loads
|
||||||
|
low-level session management components. In addition, it features the
|
||||||
|
following configuration files:
|
||||||
|
|
||||||
|
configuration/session-types.xml Session types loader
|
||||||
|
|
||||||
|
This file loads the configuration files for each specific type of
|
||||||
|
session.
|
||||||
|
|
||||||
|
configuration/session-types/ Session types definitions
|
||||||
|
|
||||||
|
This directory contains configuration files which loads all
|
||||||
|
components for some type of session. Each file should therefore
|
||||||
|
load at least one session definer component, and a bunch of
|
||||||
|
command handling components.
|
Reference in a new issue