Package com.aspectran.core.support
Class BasePathFactoryBean
- java.lang.Object
-
- com.aspectran.core.support.BasePathFactoryBean
-
- All Implemented Interfaces:
FactoryBean<java.lang.String>
,Aware
,EnvironmentAware
@AvoidAdvice public class BasePathFactoryBean extends java.lang.Object implements EnvironmentAware, FactoryBean<java.lang.String>
BasePathFactoryBean
that returns the base path under which the application is running. This can be used to reference the base path by declaring it as a bean in the Aspectran configuration metadata.Created: 2017. 1. 29.
-
-
Field Summary
-
Fields inherited from interface com.aspectran.core.component.bean.ablility.FactoryBean
FACTORY_METHOD_NAME
-
-
Constructor Summary
Constructors Constructor Description BasePathFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
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 java.lang.String getObject()
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<java.lang.String>
- Returns:
- an instance of the bean (can be null)
-
-