Class SingletonProvider

    • Constructor Detail

      • SingletonProvider

        protected SingletonProvider()
    • Method Detail

      • create

        public abstract <T> Singleton<T> create​(Class<? extends T> expectedType)
        Create a new singleton
        Type Parameters:
        T - type of Java object stored in the singleton
        Parameters:
        expectedType - represents the type of Java object stored in the singleton
        Returns:
        a singelton
      • initialize

        public static void initialize​(SingletonProvider instance)
        Initialize with an explicit instance
        Parameters:
        instance - the explicit instance
      • reset

        public static void reset()