FactoryBean<Translet>, Aware, CurrentActivityAwarepublic class CurrentTransletFactoryBean extends java.lang.Object implements CurrentActivityAware, FactoryBean<Translet>
CurrentTransletFactoryBean that returns the Translet for the current request.
It should be declared as a request or prototype bean because it is intended
to use the value that the current Translet has.
Created: 2017. 10. 22.
FACTORY_METHOD_NAME| Constructor | Description |
|---|---|
CurrentTransletFactoryBean() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getAttributeName() |
Returns the attribute name of the current
Translet specified to register
in the request scope. |
Translet |
getObject() |
Return an instance (possibly shared or independent) of the object managed by this factory.
|
boolean |
isAttributable() |
Returns whether the current
Translet is registered as an attribute
in the request scope. |
void |
setAttributeName(java.lang.String attributeName) |
Specifies the attribute name for registering the current
Translet as an attribute
in the request scope. |
void |
setCurrentActivity(Activity activity) |
public boolean isAttributable()
Translet is registered as an attribute
in the request scope.Translet is registered as an attribute
in the request scope; false otherwisepublic java.lang.String getAttributeName()
Translet specified to register
in the request scope.public void setAttributeName(java.lang.String attributeName)
Translet as an attribute
in the request scope.attributeName - the attribute name of the current Translet to be registered
in the request scope.public void setCurrentActivity(Activity activity)
setCurrentActivity in interface CurrentActivityAwarepublic Translet getObject() throws java.lang.Exception
FactoryBeangetObject in interface FactoryBean<Translet>java.lang.Exception - in case of creation errorsCopyright © 2008–2018 The Aspectran Project. All rights reserved.