public class DateProducer extends Object
Producer for #{startup}
and #{now}
.
Constructor and Description |
---|
DateProducer() |
Modifier and Type | Method and Description |
---|---|
Date |
getNow()
This makes an instance of
java.util.Date as current datetime available by #{now} . |
Date |
getStartup()
This makes an instance of
java.util.Date as startup datetime available by #{startup} . |
@Produces @Named @ApplicationScoped @Eager public Date getStartup()
java.util.Date
as startup datetime available by #{startup}
.@Produces @Named @RequestScoped public Date getNow()
java.util.Date
as current datetime available by #{now}
.Copyright © 2012–2021 OmniFaces. All rights reserved.