Class BeanDefinition

java.lang.Object
com.bobocode.bring.core.domain.BeanDefinition

public class BeanDefinition extends Object
Represents the definition of a bean within an application context.
Since:
1.0
Author:
Blyzhnytsia Team
  • Field Details

    • beanClass

      private Class<?> beanClass
    • beanType

      private BeanTypeEnum beanType
    • scope

      private BeanScope scope
    • proxyMode

      private ProxyMode proxyMode
    • method

      private Method method
    • factoryBeanName

      private String factoryBeanName
    • isPrimary

      private boolean isPrimary
  • Constructor Details

    • BeanDefinition

      public BeanDefinition()
  • Method Details

    • isConfiguration

      public boolean isConfiguration()
      Checks if the bean is of type Configuration.
      Returns:
      True if the bean is of type Configuration, otherwise false
    • isConfigurationBean

      public boolean isConfigurationBean()
      Checks if the bean is a configuration bean.
      Returns:
      True if the bean is a configuration bean, otherwise false
    • isPrototype

      public boolean isPrototype()
      Checks if the bean's scope is set to Prototype.
      Returns:
      True if the bean's scope is Prototype, otherwise false
    • isProxy

      public boolean isProxy()
      Checks if the bean is configured for proxying.
      Returns:
      True if the bean is configured for proxying, otherwise false