Sha256: 8abeee434239586478b3723a890141b198039f4f3373cb8e13d4aca68ba8c88f
Contents?: true
Size: 596 Bytes
Versions: 3
Compression:
Stored size: 596 Bytes
Contents
package app.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
3 entries across 3 versions & 2 rubygems