Class AbstractFactory<T>

    • Method Detail

      • setSingleton

        public void setSingleton​(boolean singleton)
      • getInstance

        public T getInstance()
        Description copied from interface: Factory
        Returns an instance of the required type. The implementation determines whether or not a new or cached instance is created every time this method is called.
        Specified by:
        getInstance in interface Factory<T>
        Returns:
        an instance of the required type.