gate.producer.LocalTimeProducer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gate Show documentation
Show all versions of gate Show documentation
A multipurpose java library
package gate.producer;
import java.io.Serializable;
import java.time.LocalTime;
import javax.enterprise.inject.Produces;
import javax.inject.Named;
/**
* @author davins
*
* Produces LocalTime objects with current Time
*/
public class LocalTimeProducer implements Serializable
{
@Produces
@Named("time")
public LocalTime dateTime()
{
return LocalTime.now();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy