|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.beandoc.util.LocalizedDateFactoryBean
public class LocalizedDateFactoryBean
Manages a DateFormat instance that can be customized with
a given Locale. Each request of this factory returns a
String containing the formatted Date/Time from the time of the request.
| Constructor Summary | |
|---|---|
LocalizedDateFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Setup the DateFormat managed object based on the supplied
locale (or System default locale if none is supplied) |
Object |
getObject()
Returns the formatted, current Date according to the supplied
or system default Locale. |
Class |
getObjectType()
Returns the String class. |
boolean |
isSingleton()
A new instance of the managed object has the current date and time formatted according to the supplied Locale (or system default locale if none was specified). |
void |
setLocale(Locale locale)
Set the Locale to use for the managed DateFormat, overriding the system
default locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalizedDateFactoryBean()
| Method Detail |
|---|
public Object getObject()
throws Exception
Date according to the supplied
or system default Locale.
getObject in interface FactoryBeanExceptionFactoryBean.getObject()public Class getObjectType()
String class.
getObjectType in interface FactoryBeanFactoryBean.getObjectType()public boolean isSingleton()
false
isSingleton in interface FactoryBeanFactoryBean.isSingleton()
public void afterPropertiesSet()
throws Exception
DateFormat managed object based on the supplied
locale (or System default locale if none is supplied)
afterPropertiesSet in interface InitializingBeanExceptionpublic void setLocale(Locale locale)
DateFormat, overriding the system
default locale.
locale -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||