Class CurrentEnvironmentFactoryBean

java.lang.Object
com.aspectran.core.support.CurrentEnvironmentFactoryBean
All Implemented Interfaces:
FactoryBean<Environment>, Aware, EnvironmentAware

@AvoidAdvice public class CurrentEnvironmentFactoryBean extends Object implements EnvironmentAware, FactoryBean<Environment>
CurrentEnvironmentFactoryBean that returns the Environment.

Created: 2019. 12. 18.

Since:
6.6.0
  • Constructor Details

    • CurrentEnvironmentFactoryBean

      public CurrentEnvironmentFactoryBean()
  • Method Details

    • setEnvironment

      public void setEnvironment(Environment environment)
      Specified by:
      setEnvironment in interface EnvironmentAware
    • getObject

      public Environment getObject() throws Exception
      Description copied from interface: FactoryBean
      Return an instance (possibly shared or independent) of the object managed by this factory. As with a BeanFactory, this allows support for both the Singleton and Prototype design pattern.
      Specified by:
      getObject in interface FactoryBean<Environment>
      Returns:
      an instance of the bean (can be null)
      Throws:
      Exception - in case of creation errors