Package com.aspectran.core.support
Class CurrentActivityDataFactoryBean
- java.lang.Object
-
- com.aspectran.core.support.CurrentActivityDataFactoryBean
-
- All Implemented Interfaces:
FactoryBean<ActivityDataMap>
,Aware
,CurrentActivityAware
@AvoidAdvice public class CurrentActivityDataFactoryBean extends java.lang.Object implements CurrentActivityAware, FactoryBean<ActivityDataMap>
CurrentActivityDataFactoryBean
that returns theActivityDataMap
for the current request. It should be declared as arequest
orprototype
bean because it is intended to use the value that the current Translet has.Created: 2017. 10. 24.
-
-
Field Summary
-
Fields inherited from interface com.aspectran.core.component.bean.ablility.FactoryBean
FACTORY_METHOD_NAME
-
-
Constructor Summary
Constructors Constructor Description CurrentActivityDataFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAttributeName()
Returns the attribute name of the currentActivityDataMap
specified to register in the request scope.ActivityDataMap
getObject()
Return an instance (possibly shared or independent) of the object managed by this factory.boolean
isAttributable()
Returns whether the currentActivityDataMap
is registered as an attribute in the request scope.void
setAttributeName(java.lang.String attributeName)
Specifies the attribute name for registering the currentActivityDataMap
as an attribute in the request scope.void
setCurrentActivity(Activity activity)
-
-
-
Method Detail
-
isAttributable
public boolean isAttributable()
Returns whether the currentActivityDataMap
is registered as an attribute in the request scope.- Returns:
- true if the current
ActivityDataMap
is registered as an attribute in the request scope; otherwise false
-
getAttributeName
public java.lang.String getAttributeName()
Returns the attribute name of the currentActivityDataMap
specified to register in the request scope.- Returns:
- the attribute name
-
setAttributeName
public void setAttributeName(java.lang.String attributeName)
Specifies the attribute name for registering the currentActivityDataMap
as an attribute in the request scope.- Parameters:
attributeName
- the attribute name of the currentActivityDataMap
to be registered in the request scope.
-
setCurrentActivity
public void setCurrentActivity(Activity activity)
- Specified by:
setCurrentActivity
in interfaceCurrentActivityAware
-
getObject
public ActivityDataMap 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<ActivityDataMap>
- Returns:
- an instance of the bean (can be null)
-
-