Package com.aspectran.core.support
Class CurrentEnvironmentFactoryBean
- java.lang.Object
-
- com.aspectran.core.support.CurrentEnvironmentFactoryBean
-
- All Implemented Interfaces:
FactoryBean<Environment>
,Aware
,EnvironmentAware
@AvoidAdvice public class CurrentEnvironmentFactoryBean extends java.lang.Object implements EnvironmentAware, FactoryBean<Environment>
- Since:
- 6.6.0
-
-
Field Summary
-
Fields inherited from interface com.aspectran.core.component.bean.ablility.FactoryBean
FACTORY_METHOD_NAME
-
-
Constructor Summary
Constructors Constructor Description CurrentEnvironmentFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Environment
getObject()
Return an instance (possibly shared or independent) of the object managed by this factory.void
setEnvironment(Environment environment)
-
-
-
Method Detail
-
setEnvironment
public void setEnvironment(Environment environment)
- Specified by:
setEnvironment
in interfaceEnvironmentAware
-
getObject
public Environment getObject() throws java.lang.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 interfaceFactoryBean<Environment>
- Returns:
- an instance of the bean (can be null)
- Throws:
java.lang.Exception
- in case of creation errors
-
-