Enum Class BeanScope

java.lang.Object
java.lang.Enum<BeanScope>
com.bobocode.bring.core.domain.BeanScope
All Implemented Interfaces:
Serializable, Comparable<BeanScope>, Constable

public enum BeanScope extends Enum<BeanScope>
Enumeration representing the scope of beans in an application.
Since:
1.0
Author:
Blyzhnytsia Team
  • Enum Constant Details

    • SINGLETON

      public static final BeanScope SINGLETON
      Indicates that a single instance of the bean is created and shared throughout the application context.
    • PROTOTYPE

      public static final BeanScope PROTOTYPE
      Indicates that a new instance of the bean is created whenever it is requested.
  • Constructor Details

    • BeanScope

      private BeanScope()
  • Method Details

    • values

      public static BeanScope[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BeanScope valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null