From 35d8891fe3bca322972aaa22e39a18f0246dd5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sat, 4 Feb 2012 12:56:58 +0100 Subject: [PATCH] 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. --- .../configuration/accounts-beans.xml | 24 ------ .../accounts/account-cleanup-bean.xml | 8 -- .../accounts/account-management-bean.xml | 9 --- .../configuration/accounts/admin-dao-bean.xml | 9 --- .../accounts/administration-bean.xml | 9 --- .../configuration/accounts/bans-dao-bean.xml | 9 --- .../accounts/bans-processor-bean.xml | 9 --- .../accounts/default-preferences-bean.xml | 9 --- .../configuration/accounts/ip-ban-bean.xml | 9 --- .../accounts/preference-definitions-bean.xml | 9 --- .../accounts/preferences-dao-bean.xml | 9 --- .../accounts/quit-processor-bean.xml | 9 --- .../accounts/requests-expiration-bean.xml | 9 --- .../accounts/user-session-dao-bean.xml | 9 --- .../configuration/accounts/users-dao-bean.xml | 9 --- .../accounts/vacation-processor-bean.xml | 9 --- .../resources/configuration/meta/accounts.xml | 26 +++++++ .../main/resources/configuration/bt-beans.xml | 11 --- .../configuration/bt/admin-bugs-bean.xml | 9 --- .../configuration/bt/bugs-dao-bean.xml | 9 --- .../configuration/bt/empire-summary-bean.xml | 8 -- .../{bt/player-bugs-bean.xml => meta/bt.xml} | 7 +- .../configuration/eventlog-beans.xml | 12 --- .../eventlog/admin-error-mail-bean.xml | 8 -- .../eventlog/log-cleaner-bean.xml | 9 --- .../eventlog/log-reader-bean.xml | 9 --- .../eventlog/log-writer-bean.xml | 9 --- .../configuration/eventlog/logger-bean.xml | 9 --- .../resources/configuration/meta/eventlog.xml | 13 ++++ .../resources/configuration/i18n-beans.xml | 10 --- .../configuration/i18n/i18n-manager-bean.xml | 9 --- .../i18n/i18n-translator-bean.xml | 9 --- .../resources/configuration/meta/i18n.xml | 3 +- .../configuration/mailer/mailer-bean.xml | 10 --- .../{mailer-beans.xml => meta/mailer.xml} | 4 +- .../naming-dao-bean.xml => meta/naming.xml} | 3 +- .../resources/configuration/naming-beans.xml | 10 --- .../naming/names-manager-bean.xml | 8 -- .../{resources-beans.xml => resources.xml} | 0 .../src/main/resources/configuration/game.xml | 8 -- .../{simple-beans.xml => simple.xml} | 0 .../system.xml} | 14 +++- .../resources/configuration/system-beans.xml | 12 --- .../system/constants-manager-bean.xml | 9 --- .../system/constants-registrar-bean.xml | 9 --- .../system/system-status-bean.xml | 9 --- .../configuration/system/ticker-bean.xml | 10 --- .../sessions.xml} | 6 +- .../resources/configuration/session-types.xml | 6 +- .../administration.xml} | 0 .../external.xml} | 0 .../player.xml} | 0 .../resources/configuration/user-beans.xml | 14 ---- .../user/object-name-validator-bean.xml | 9 --- .../user/session-subtype-wiring-bean.xml | 9 --- .../configuration/transaction-bean.xml | 14 ---- .../configuration/context-configuration.xml | 11 --- .../src/main/resources/configuration/game.xml | 13 ++++ .../src/main/resources/configuration/meta.xml | 19 +++++ .../resources/configuration/transactions.xml | 15 ++++ .../src/main/resources/lw-server.xml | 35 +++++---- legacyworlds/doc/spring-configuration.txt | 77 +++++++++++++++++++ 62 files changed, 211 insertions(+), 451 deletions(-) delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts-beans.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/account-cleanup-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/account-management-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/admin-dao-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/administration-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/bans-dao-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/bans-processor-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/default-preferences-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/ip-ban-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/preference-definitions-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/preferences-dao-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/quit-processor-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/requests-expiration-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/user-session-dao-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/users-dao-bean.xml delete mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/vacation-processor-bean.xml create mode 100644 legacyworlds-server-beans-accounts/src/main/resources/configuration/meta/accounts.xml delete mode 100644 legacyworlds-server-beans-bt/src/main/resources/configuration/bt-beans.xml delete mode 100644 legacyworlds-server-beans-bt/src/main/resources/configuration/bt/admin-bugs-bean.xml delete mode 100644 legacyworlds-server-beans-bt/src/main/resources/configuration/bt/bugs-dao-bean.xml delete mode 100644 legacyworlds-server-beans-bt/src/main/resources/configuration/bt/empire-summary-bean.xml rename legacyworlds-server-beans-bt/src/main/resources/configuration/{bt/player-bugs-bean.xml => meta/bt.xml} (52%) delete mode 100644 legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog-beans.xml delete mode 100644 legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/admin-error-mail-bean.xml delete mode 100644 legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/log-cleaner-bean.xml delete mode 100644 legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/log-reader-bean.xml delete mode 100644 legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/log-writer-bean.xml delete mode 100644 legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/logger-bean.xml create mode 100644 legacyworlds-server-beans-eventlog/src/main/resources/configuration/meta/eventlog.xml delete mode 100644 legacyworlds-server-beans-i18n/src/main/resources/configuration/i18n-beans.xml delete mode 100644 legacyworlds-server-beans-i18n/src/main/resources/configuration/i18n/i18n-manager-bean.xml delete mode 100644 legacyworlds-server-beans-i18n/src/main/resources/configuration/i18n/i18n-translator-bean.xml rename legacyworlds-server-beans-updates/src/main/resources/configuration/game.xml => legacyworlds-server-beans-i18n/src/main/resources/configuration/meta/i18n.xml (65%) delete mode 100644 legacyworlds-server-beans-mailer/src/main/resources/configuration/mailer/mailer-bean.xml rename legacyworlds-server-beans-mailer/src/main/resources/configuration/{mailer-beans.xml => meta/mailer.xml} (74%) rename legacyworlds-server-beans-naming/src/main/resources/configuration/{naming/naming-dao-bean.xml => meta/naming.xml} (69%) delete mode 100644 legacyworlds-server-beans-naming/src/main/resources/configuration/naming-beans.xml delete mode 100644 legacyworlds-server-beans-naming/src/main/resources/configuration/naming/names-manager-bean.xml rename legacyworlds-server-beans-resources/src/main/resources/configuration/game/{resources-beans.xml => resources.xml} (100%) delete mode 100644 legacyworlds-server-beans-simple/src/main/resources/configuration/game.xml rename legacyworlds-server-beans-simple/src/main/resources/configuration/{simple-beans.xml => simple.xml} (100%) rename legacyworlds-server-beans-system/src/main/resources/configuration/{system/session-manager-bean.xml => meta/system.xml} (54%) delete mode 100644 legacyworlds-server-beans-system/src/main/resources/configuration/system-beans.xml delete mode 100644 legacyworlds-server-beans-system/src/main/resources/configuration/system/constants-manager-bean.xml delete mode 100644 legacyworlds-server-beans-system/src/main/resources/configuration/system/constants-registrar-bean.xml delete mode 100644 legacyworlds-server-beans-system/src/main/resources/configuration/system/system-status-bean.xml delete mode 100644 legacyworlds-server-beans-system/src/main/resources/configuration/system/ticker-bean.xml rename legacyworlds-server-beans-user/src/main/resources/configuration/{user/session-command-wiring-bean.xml => meta/sessions.xml} (56%) rename legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/admin-recap-bean.xml => legacyworlds-server-beans-user/src/main/resources/configuration/session-types.xml (65%) rename legacyworlds-server-beans-user/src/main/resources/configuration/{user/admin-session-definer-bean.xml => session-types/administration.xml} (100%) rename legacyworlds-server-beans-user/src/main/resources/configuration/{user/external-session-definer-bean.xml => session-types/external.xml} (100%) rename legacyworlds-server-beans-user/src/main/resources/configuration/{user/player-session-definer-bean.xml => session-types/player.xml} (100%) delete mode 100644 legacyworlds-server-beans-user/src/main/resources/configuration/user-beans.xml delete mode 100644 legacyworlds-server-beans-user/src/main/resources/configuration/user/object-name-validator-bean.xml delete mode 100644 legacyworlds-server-beans-user/src/main/resources/configuration/user/session-subtype-wiring-bean.xml delete mode 100644 legacyworlds-server-data/src/main/resources/configuration/transaction-bean.xml delete mode 100644 legacyworlds-server-main/src/main/resources/configuration/context-configuration.xml create mode 100644 legacyworlds-server-main/src/main/resources/configuration/game.xml create mode 100644 legacyworlds-server-main/src/main/resources/configuration/meta.xml create mode 100644 legacyworlds-server-main/src/main/resources/configuration/transactions.xml create mode 100644 legacyworlds/doc/spring-configuration.txt diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts-beans.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts-beans.xml deleted file mode 100644 index bd7ec9b..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts-beans.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/account-cleanup-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/account-cleanup-bean.xml deleted file mode 100644 index e1c6a61..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/account-cleanup-bean.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/account-management-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/account-management-bean.xml deleted file mode 100644 index 6062c6a..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/account-management-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/admin-dao-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/admin-dao-bean.xml deleted file mode 100644 index 8640f69..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/admin-dao-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/administration-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/administration-bean.xml deleted file mode 100644 index 1039d63..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/administration-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/bans-dao-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/bans-dao-bean.xml deleted file mode 100644 index f654c86..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/bans-dao-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/bans-processor-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/bans-processor-bean.xml deleted file mode 100644 index 4167e63..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/bans-processor-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/default-preferences-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/default-preferences-bean.xml deleted file mode 100644 index e7bca93..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/default-preferences-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/ip-ban-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/ip-ban-bean.xml deleted file mode 100644 index 2c70cf8..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/ip-ban-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/preference-definitions-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/preference-definitions-bean.xml deleted file mode 100644 index 73dfc57..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/preference-definitions-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/preferences-dao-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/preferences-dao-bean.xml deleted file mode 100644 index 42926c3..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/preferences-dao-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/quit-processor-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/quit-processor-bean.xml deleted file mode 100644 index a571d09..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/quit-processor-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/requests-expiration-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/requests-expiration-bean.xml deleted file mode 100644 index f4525e4..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/requests-expiration-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/user-session-dao-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/user-session-dao-bean.xml deleted file mode 100644 index 0c7e785..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/user-session-dao-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/users-dao-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/users-dao-bean.xml deleted file mode 100644 index 817940f..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/users-dao-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/vacation-processor-bean.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/vacation-processor-bean.xml deleted file mode 100644 index 2c67fea..0000000 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/vacation-processor-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/meta/accounts.xml b/legacyworlds-server-beans-accounts/src/main/resources/configuration/meta/accounts.xml new file mode 100644 index 0000000..98207c4 --- /dev/null +++ b/legacyworlds-server-beans-accounts/src/main/resources/configuration/meta/accounts.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/legacyworlds-server-beans-bt/src/main/resources/configuration/bt-beans.xml b/legacyworlds-server-beans-bt/src/main/resources/configuration/bt-beans.xml deleted file mode 100644 index 2673721..0000000 --- a/legacyworlds-server-beans-bt/src/main/resources/configuration/bt-beans.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - diff --git a/legacyworlds-server-beans-bt/src/main/resources/configuration/bt/admin-bugs-bean.xml b/legacyworlds-server-beans-bt/src/main/resources/configuration/bt/admin-bugs-bean.xml deleted file mode 100644 index 5ddaaca..0000000 --- a/legacyworlds-server-beans-bt/src/main/resources/configuration/bt/admin-bugs-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-bt/src/main/resources/configuration/bt/bugs-dao-bean.xml b/legacyworlds-server-beans-bt/src/main/resources/configuration/bt/bugs-dao-bean.xml deleted file mode 100644 index 3850ac1..0000000 --- a/legacyworlds-server-beans-bt/src/main/resources/configuration/bt/bugs-dao-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-bt/src/main/resources/configuration/bt/empire-summary-bean.xml b/legacyworlds-server-beans-bt/src/main/resources/configuration/bt/empire-summary-bean.xml deleted file mode 100644 index a268802..0000000 --- a/legacyworlds-server-beans-bt/src/main/resources/configuration/bt/empire-summary-bean.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-bt/src/main/resources/configuration/bt/player-bugs-bean.xml b/legacyworlds-server-beans-bt/src/main/resources/configuration/meta/bt.xml similarity index 52% rename from legacyworlds-server-beans-bt/src/main/resources/configuration/bt/player-bugs-bean.xml rename to legacyworlds-server-beans-bt/src/main/resources/configuration/meta/bt.xml index 47c377f..d96389c 100644 --- a/legacyworlds-server-beans-bt/src/main/resources/configuration/bt/player-bugs-bean.xml +++ b/legacyworlds-server-beans-bt/src/main/resources/configuration/meta/bt.xml @@ -2,8 +2,11 @@ + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"> + + + - + \ No newline at end of file diff --git a/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog-beans.xml b/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog-beans.xml deleted file mode 100644 index 934a2d8..0000000 --- a/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog-beans.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - diff --git a/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/admin-error-mail-bean.xml b/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/admin-error-mail-bean.xml deleted file mode 100644 index f0e6a6e..0000000 --- a/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/admin-error-mail-bean.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/log-cleaner-bean.xml b/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/log-cleaner-bean.xml deleted file mode 100644 index 7773c57..0000000 --- a/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/log-cleaner-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/log-reader-bean.xml b/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/log-reader-bean.xml deleted file mode 100644 index 1e56da0..0000000 --- a/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/log-reader-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/log-writer-bean.xml b/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/log-writer-bean.xml deleted file mode 100644 index 21fc777..0000000 --- a/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/log-writer-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/logger-bean.xml b/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/logger-bean.xml deleted file mode 100644 index 22b1347..0000000 --- a/legacyworlds-server-beans-eventlog/src/main/resources/configuration/eventlog/logger-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-eventlog/src/main/resources/configuration/meta/eventlog.xml b/legacyworlds-server-beans-eventlog/src/main/resources/configuration/meta/eventlog.xml new file mode 100644 index 0000000..7841904 --- /dev/null +++ b/legacyworlds-server-beans-eventlog/src/main/resources/configuration/meta/eventlog.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/legacyworlds-server-beans-i18n/src/main/resources/configuration/i18n-beans.xml b/legacyworlds-server-beans-i18n/src/main/resources/configuration/i18n-beans.xml deleted file mode 100644 index bfaaebb..0000000 --- a/legacyworlds-server-beans-i18n/src/main/resources/configuration/i18n-beans.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/legacyworlds-server-beans-i18n/src/main/resources/configuration/i18n/i18n-manager-bean.xml b/legacyworlds-server-beans-i18n/src/main/resources/configuration/i18n/i18n-manager-bean.xml deleted file mode 100644 index a683f48..0000000 --- a/legacyworlds-server-beans-i18n/src/main/resources/configuration/i18n/i18n-manager-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-i18n/src/main/resources/configuration/i18n/i18n-translator-bean.xml b/legacyworlds-server-beans-i18n/src/main/resources/configuration/i18n/i18n-translator-bean.xml deleted file mode 100644 index 9118332..0000000 --- a/legacyworlds-server-beans-i18n/src/main/resources/configuration/i18n/i18n-translator-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-updates/src/main/resources/configuration/game.xml b/legacyworlds-server-beans-i18n/src/main/resources/configuration/meta/i18n.xml similarity index 65% rename from legacyworlds-server-beans-updates/src/main/resources/configuration/game.xml rename to legacyworlds-server-beans-i18n/src/main/resources/configuration/meta/i18n.xml index 687e57a..dc21c5b 100644 --- a/legacyworlds-server-beans-updates/src/main/resources/configuration/game.xml +++ b/legacyworlds-server-beans-i18n/src/main/resources/configuration/meta/i18n.xml @@ -4,6 +4,7 @@ xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"> - + + \ No newline at end of file diff --git a/legacyworlds-server-beans-mailer/src/main/resources/configuration/mailer/mailer-bean.xml b/legacyworlds-server-beans-mailer/src/main/resources/configuration/mailer/mailer-bean.xml deleted file mode 100644 index a430dd0..0000000 --- a/legacyworlds-server-beans-mailer/src/main/resources/configuration/mailer/mailer-bean.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/legacyworlds-server-beans-mailer/src/main/resources/configuration/mailer-beans.xml b/legacyworlds-server-beans-mailer/src/main/resources/configuration/meta/mailer.xml similarity index 74% rename from legacyworlds-server-beans-mailer/src/main/resources/configuration/mailer-beans.xml rename to legacyworlds-server-beans-mailer/src/main/resources/configuration/meta/mailer.xml index e5e284f..cceb640 100644 --- a/legacyworlds-server-beans-mailer/src/main/resources/configuration/mailer-beans.xml +++ b/legacyworlds-server-beans-mailer/src/main/resources/configuration/meta/mailer.xml @@ -2,9 +2,9 @@ + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"> - + diff --git a/legacyworlds-server-beans-naming/src/main/resources/configuration/naming/naming-dao-bean.xml b/legacyworlds-server-beans-naming/src/main/resources/configuration/meta/naming.xml similarity index 69% rename from legacyworlds-server-beans-naming/src/main/resources/configuration/naming/naming-dao-bean.xml rename to legacyworlds-server-beans-naming/src/main/resources/configuration/meta/naming.xml index 0a3dfe5..f63e0df 100644 --- a/legacyworlds-server-beans-naming/src/main/resources/configuration/naming/naming-dao-bean.xml +++ b/legacyworlds-server-beans-naming/src/main/resources/configuration/meta/naming.xml @@ -2,8 +2,9 @@ + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"> + diff --git a/legacyworlds-server-beans-naming/src/main/resources/configuration/naming-beans.xml b/legacyworlds-server-beans-naming/src/main/resources/configuration/naming-beans.xml deleted file mode 100644 index f4ab8cc..0000000 --- a/legacyworlds-server-beans-naming/src/main/resources/configuration/naming-beans.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/legacyworlds-server-beans-naming/src/main/resources/configuration/naming/names-manager-bean.xml b/legacyworlds-server-beans-naming/src/main/resources/configuration/naming/names-manager-bean.xml deleted file mode 100644 index 060f506..0000000 --- a/legacyworlds-server-beans-naming/src/main/resources/configuration/naming/names-manager-bean.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-resources/src/main/resources/configuration/game/resources-beans.xml b/legacyworlds-server-beans-resources/src/main/resources/configuration/game/resources.xml similarity index 100% rename from legacyworlds-server-beans-resources/src/main/resources/configuration/game/resources-beans.xml rename to legacyworlds-server-beans-resources/src/main/resources/configuration/game/resources.xml diff --git a/legacyworlds-server-beans-simple/src/main/resources/configuration/game.xml b/legacyworlds-server-beans-simple/src/main/resources/configuration/game.xml deleted file mode 100644 index 952f3f6..0000000 --- a/legacyworlds-server-beans-simple/src/main/resources/configuration/game.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/legacyworlds-server-beans-simple/src/main/resources/configuration/simple-beans.xml b/legacyworlds-server-beans-simple/src/main/resources/configuration/simple.xml similarity index 100% rename from legacyworlds-server-beans-simple/src/main/resources/configuration/simple-beans.xml rename to legacyworlds-server-beans-simple/src/main/resources/configuration/simple.xml diff --git a/legacyworlds-server-beans-system/src/main/resources/configuration/system/session-manager-bean.xml b/legacyworlds-server-beans-system/src/main/resources/configuration/meta/system.xml similarity index 54% rename from legacyworlds-server-beans-system/src/main/resources/configuration/system/session-manager-bean.xml rename to legacyworlds-server-beans-system/src/main/resources/configuration/meta/system.xml index dcddd03..7728e8d 100644 --- a/legacyworlds-server-beans-system/src/main/resources/configuration/system/session-manager-bean.xml +++ b/legacyworlds-server-beans-system/src/main/resources/configuration/meta/system.xml @@ -7,15 +7,23 @@ - + + + + - + + + + - + \ No newline at end of file diff --git a/legacyworlds-server-beans-system/src/main/resources/configuration/system-beans.xml b/legacyworlds-server-beans-system/src/main/resources/configuration/system-beans.xml deleted file mode 100644 index 7d0a16e..0000000 --- a/legacyworlds-server-beans-system/src/main/resources/configuration/system-beans.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - diff --git a/legacyworlds-server-beans-system/src/main/resources/configuration/system/constants-manager-bean.xml b/legacyworlds-server-beans-system/src/main/resources/configuration/system/constants-manager-bean.xml deleted file mode 100644 index 3603ae6..0000000 --- a/legacyworlds-server-beans-system/src/main/resources/configuration/system/constants-manager-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-system/src/main/resources/configuration/system/constants-registrar-bean.xml b/legacyworlds-server-beans-system/src/main/resources/configuration/system/constants-registrar-bean.xml deleted file mode 100644 index 3fa577d..0000000 --- a/legacyworlds-server-beans-system/src/main/resources/configuration/system/constants-registrar-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-system/src/main/resources/configuration/system/system-status-bean.xml b/legacyworlds-server-beans-system/src/main/resources/configuration/system/system-status-bean.xml deleted file mode 100644 index f8b97f4..0000000 --- a/legacyworlds-server-beans-system/src/main/resources/configuration/system/system-status-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-system/src/main/resources/configuration/system/ticker-bean.xml b/legacyworlds-server-beans-system/src/main/resources/configuration/system/ticker-bean.xml deleted file mode 100644 index 894c846..0000000 --- a/legacyworlds-server-beans-system/src/main/resources/configuration/system/ticker-bean.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/legacyworlds-server-beans-user/src/main/resources/configuration/user/session-command-wiring-bean.xml b/legacyworlds-server-beans-user/src/main/resources/configuration/meta/sessions.xml similarity index 56% rename from legacyworlds-server-beans-user/src/main/resources/configuration/user/session-command-wiring-bean.xml rename to legacyworlds-server-beans-user/src/main/resources/configuration/meta/sessions.xml index da9ba6d..611aa59 100644 --- a/legacyworlds-server-beans-user/src/main/resources/configuration/user/session-command-wiring-bean.xml +++ b/legacyworlds-server-beans-user/src/main/resources/configuration/meta/sessions.xml @@ -2,8 +2,10 @@ + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"> + + - + \ No newline at end of file diff --git a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/admin-recap-bean.xml b/legacyworlds-server-beans-user/src/main/resources/configuration/session-types.xml similarity index 65% rename from legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/admin-recap-bean.xml rename to legacyworlds-server-beans-user/src/main/resources/configuration/session-types.xml index 4d609ab..e52899d 100644 --- a/legacyworlds-server-beans-accounts/src/main/resources/configuration/accounts/admin-recap-bean.xml +++ b/legacyworlds-server-beans-user/src/main/resources/configuration/session-types.xml @@ -4,6 +4,8 @@ xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> - + + + - + \ No newline at end of file diff --git a/legacyworlds-server-beans-user/src/main/resources/configuration/user/admin-session-definer-bean.xml b/legacyworlds-server-beans-user/src/main/resources/configuration/session-types/administration.xml similarity index 100% rename from legacyworlds-server-beans-user/src/main/resources/configuration/user/admin-session-definer-bean.xml rename to legacyworlds-server-beans-user/src/main/resources/configuration/session-types/administration.xml diff --git a/legacyworlds-server-beans-user/src/main/resources/configuration/user/external-session-definer-bean.xml b/legacyworlds-server-beans-user/src/main/resources/configuration/session-types/external.xml similarity index 100% rename from legacyworlds-server-beans-user/src/main/resources/configuration/user/external-session-definer-bean.xml rename to legacyworlds-server-beans-user/src/main/resources/configuration/session-types/external.xml diff --git a/legacyworlds-server-beans-user/src/main/resources/configuration/user/player-session-definer-bean.xml b/legacyworlds-server-beans-user/src/main/resources/configuration/session-types/player.xml similarity index 100% rename from legacyworlds-server-beans-user/src/main/resources/configuration/user/player-session-definer-bean.xml rename to legacyworlds-server-beans-user/src/main/resources/configuration/session-types/player.xml diff --git a/legacyworlds-server-beans-user/src/main/resources/configuration/user-beans.xml b/legacyworlds-server-beans-user/src/main/resources/configuration/user-beans.xml deleted file mode 100644 index 3c1c824..0000000 --- a/legacyworlds-server-beans-user/src/main/resources/configuration/user-beans.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - diff --git a/legacyworlds-server-beans-user/src/main/resources/configuration/user/object-name-validator-bean.xml b/legacyworlds-server-beans-user/src/main/resources/configuration/user/object-name-validator-bean.xml deleted file mode 100644 index 7d06f66..0000000 --- a/legacyworlds-server-beans-user/src/main/resources/configuration/user/object-name-validator-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-beans-user/src/main/resources/configuration/user/session-subtype-wiring-bean.xml b/legacyworlds-server-beans-user/src/main/resources/configuration/user/session-subtype-wiring-bean.xml deleted file mode 100644 index 5713773..0000000 --- a/legacyworlds-server-beans-user/src/main/resources/configuration/user/session-subtype-wiring-bean.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/legacyworlds-server-data/src/main/resources/configuration/transaction-bean.xml b/legacyworlds-server-data/src/main/resources/configuration/transaction-bean.xml deleted file mode 100644 index 6cf7b29..0000000 --- a/legacyworlds-server-data/src/main/resources/configuration/transaction-bean.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - diff --git a/legacyworlds-server-main/src/main/resources/configuration/context-configuration.xml b/legacyworlds-server-main/src/main/resources/configuration/context-configuration.xml deleted file mode 100644 index 11e1a81..0000000 --- a/legacyworlds-server-main/src/main/resources/configuration/context-configuration.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/legacyworlds-server-main/src/main/resources/configuration/game.xml b/legacyworlds-server-main/src/main/resources/configuration/game.xml new file mode 100644 index 0000000..2702f02 --- /dev/null +++ b/legacyworlds-server-main/src/main/resources/configuration/game.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/legacyworlds-server-main/src/main/resources/configuration/meta.xml b/legacyworlds-server-main/src/main/resources/configuration/meta.xml new file mode 100644 index 0000000..69924f6 --- /dev/null +++ b/legacyworlds-server-main/src/main/resources/configuration/meta.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/legacyworlds-server-main/src/main/resources/configuration/transactions.xml b/legacyworlds-server-main/src/main/resources/configuration/transactions.xml new file mode 100644 index 0000000..3e20eb9 --- /dev/null +++ b/legacyworlds-server-main/src/main/resources/configuration/transactions.xml @@ -0,0 +1,15 @@ + + + + + + + + + + diff --git a/legacyworlds-server-main/src/main/resources/lw-server.xml b/legacyworlds-server-main/src/main/resources/lw-server.xml index 081b882..07a0a74 100644 --- a/legacyworlds-server-main/src/main/resources/lw-server.xml +++ b/legacyworlds-server-main/src/main/resources/lw-server.xml @@ -2,30 +2,31 @@ + 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.1.xsd"> + + + + + - + + + + - - + + - - - - - - - - - + + - + - + diff --git a/legacyworlds/doc/spring-configuration.txt b/legacyworlds/doc/spring-configuration.txt new file mode 100644 index 0000000..2eda413 --- /dev/null +++ b/legacyworlds/doc/spring-configuration.txt @@ -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. \ No newline at end of file