Class SingletonRepository
java.lang.Object
games.stendhal.server.core.engine.SingletonRepository
Takes an instance of every 'singleton' created and provides setters and getters.
It is not meant to be a high sophisticated class. Just one step into getting rid of the singleton hell;
- Author:
- astridEmma
-
Method Summary
Modifier and TypeMethodDescriptionstatic SingletonRepositoryget()Singleton access method.static AchievementNotifierstatic AthorFerrystatic BankAccessorManagerstatic CachedActionManagerRetrieves the CachedActionManager.gets the PlayerVsPlayerChallengeManagerstatic CloneManagerRetrieves the CloneManager.static EntityManagerstatic GagManagerstatic GroupManagergets the GroupManagerstatic JailgetJail()static LoginNotifierstatic LogoutNotifierstatic MerchantsRegisterstatic NPCListstatic OutfitShopsListstatic ProducerRegisterstatic StendhalRPWorldstatic StendhalRPRuleProcessorstatic ServicersRegisterstatic ShopsListstatic ShopsXMLLoaderRetrieves XML loader for NPC shops.static StendhalQuestSystemstatic TransactionPoolstatic TurnNotifierstatic voidSets the Jail instance
-
Method Details
-
get
Singleton access method.- Returns:
- The static instance.
-
getRuleProcessor
- Returns:
- the actual StendhalRPRuleProcessor instance
-
getRPWorld
- Returns:
- the actual StendhalRPWorld instance
-
getTurnNotifier
- Returns:
- the actual TurnNotifier instance
-
getGagManager
- Returns:
- the actual GagManager instance
-
getLoginNotifier
- Returns:
- the actual LoginNotifier instance
-
getLogoutNotifier
- Returns:
- the actual LogoutNotifier instance
-
getJail
- Returns:
- the actual Jail instance
-
setJail
Sets the Jail instance- Parameters:
jail-
-
getNPCList
- Returns:
- the actual NPCList instance
-
getStendhalQuestSystem
- Returns:
- the actual StendhalQuestSystem instance
-
getProducerRegister
- Returns:
- the actual ProducerRegister instance
-
getMerchantsRegister
-
getServicersRegister
-
getTransactionPool
- Returns:
- the actual TransactionPool instance
-
getShopsList
- Returns:
- the actual ShopsList instance
-
getOutfitShopsList
-
getBankAccessorManager
- Returns:
- the BankAccessorManager instance
-
getAthorFerry
- Returns:
- the AthorFerry instance
-
getAchievementNotifier
- Returns:
- the AchievementNotifier instance
-
getEntityManager
- Returns:
- the actual EntityManager instance
-
getGroupManager
gets the GroupManager- Returns:
- GroupManager
-
getChallengeManager
gets the PlayerVsPlayerChallengeManager- Returns:
- PlayerVsPlayerChallengeManager
-
getCachedActionManager
Retrieves the CachedActionManager.- Returns:
- CachedActionManager instance.
-
getCloneManager
Retrieves the CloneManager.- Returns:
- CloneManager instance.
-
getShopsXMLLoader
Retrieves XML loader for NPC shops.
-