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 SingletonRepository
get()
Singleton access method.static AchievementNotifier
static AthorFerry
static BankAccessorManager
static CachedActionManager
Retrieves the CachedActionManager.gets the PlayerVsPlayerChallengeManagerstatic CloneManager
Retrieves the CloneManager.static EntityManager
static GagManager
static GroupManager
gets the GroupManagerstatic Jail
getJail()
static LoginNotifier
static LogoutNotifier
static MerchantsRegister
static NPCList
static ProducerRegister
static StendhalRPWorld
static StendhalRPRuleProcessor
static ServicersRegister
static ShopList
static StendhalQuestSystem
static TransactionPool
static TurnNotifier
static void
Sets 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
-
getShopList
- Returns:
- the actual ShopList instance
-
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.
-