Class SingletonRepository

java.lang.Object
games.stendhal.server.core.engine.SingletonRepository

public class SingletonRepository extends Object
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 Details

    • get

      public static SingletonRepository get()
      Singleton access method.
      Returns:
      The static instance.
    • getRuleProcessor

      public static StendhalRPRuleProcessor getRuleProcessor()
      Returns:
      the actual StendhalRPRuleProcessor instance
    • getRPWorld

      public static StendhalRPWorld getRPWorld()
      Returns:
      the actual StendhalRPWorld instance
    • getTurnNotifier

      public static TurnNotifier getTurnNotifier()
      Returns:
      the actual TurnNotifier instance
    • getGagManager

      public static GagManager getGagManager()
      Returns:
      the actual GagManager instance
    • getLoginNotifier

      public static LoginNotifier getLoginNotifier()
      Returns:
      the actual LoginNotifier instance
    • getLogoutNotifier

      public static LogoutNotifier getLogoutNotifier()
      Returns:
      the actual LogoutNotifier instance
    • getJail

      public static Jail getJail()
      Returns:
      the actual Jail instance
    • setJail

      public static void setJail(Jail jail)
      Sets the Jail instance
      Parameters:
      jail -
    • getNPCList

      public static NPCList getNPCList()
      Returns:
      the actual NPCList instance
    • getStendhalQuestSystem

      public static StendhalQuestSystem getStendhalQuestSystem()
      Returns:
      the actual StendhalQuestSystem instance
    • getProducerRegister

      public static ProducerRegister getProducerRegister()
      Returns:
      the actual ProducerRegister instance
    • getMerchantsRegister

      public static MerchantsRegister getMerchantsRegister()
    • getServicersRegister

      public static ServicersRegister getServicersRegister()
    • getTransactionPool

      public static TransactionPool getTransactionPool()
      Returns:
      the actual TransactionPool instance
    • getShopList

      public static ShopList getShopList()
      Returns:
      the actual ShopList instance
    • getBankAccessorManager

      public static BankAccessorManager getBankAccessorManager()
      Returns:
      the BankAccessorManager instance
    • getAthorFerry

      public static AthorFerry getAthorFerry()
      Returns:
      the AthorFerry instance
    • getAchievementNotifier

      public static AchievementNotifier getAchievementNotifier()
      Returns:
      the AchievementNotifier instance
    • getEntityManager

      public static EntityManager getEntityManager()
      Returns:
      the actual EntityManager instance
    • getGroupManager

      public static GroupManager getGroupManager()
      gets the GroupManager
      Returns:
      GroupManager
    • getChallengeManager

      public static PlayerVsPlayerChallengeManager getChallengeManager()
      gets the PlayerVsPlayerChallengeManager
      Returns:
      PlayerVsPlayerChallengeManager
    • getCachedActionManager

      public static CachedActionManager getCachedActionManager()
      Retrieves the CachedActionManager.
      Returns:
      CachedActionManager instance.
    • getCloneManager

      public static CloneManager getCloneManager()
      Retrieves the CloneManager.
      Returns:
      CloneManager instance.