Sha256: eb1f40ffa1a770eac9dda1f91d008ea005cb6db09de018937b33cc843f5b8893
Contents?: true
Size: 617 Bytes
Versions: 2
Compression:
Stored size: 617 Bytes
Contents
package <%= options[:package] %>.infra; import javax.annotation.PostConstruct; import br.com.caelum.vraptor.ioc.Component; import br.com.caelum.vraptor.ioc.ComponentFactory; import br.com.caelum.vraptor.ioc.RequestScoped; import com.googlecode.objectify.Objectify; import com.googlecode.objectify.ObjectifyService; @Component @RequestScoped public class ObjectifyFactory implements ComponentFactory<Objectify> { private Objectify session; static { } @PostConstruct public void abreSession() { session = ObjectifyService.begin(); } @Override public Objectify getInstance() { return session; } }
Version data entries
2 entries across 2 versions & 1 rubygems