com.googlecode.objectify
Class ObjectifyService

java.lang.Object
  extended by com.googlecode.objectify.ObjectifyService

public class ObjectifyService
extends java.lang.Object

This is a simple container for a single static instance of ObjectifyFactory. You can choose to use this class or build your own equivalent. You may prefer to use a dependency injection system like Weld or Guice directly with an ObjectifyFactory and eschew this class entirely.

For further advice, see the BestPractices.

Author:
Jeff Schnitzer

Field Summary
protected static ObjectifyFactory factory
          Singleton instance
 
Constructor Summary
ObjectifyService()
           
 
Method Summary
static Objectify begin()
           
static Objectify begin(ObjectifyOpts opts)
           
static Objectify beginTransaction()
           
static ObjectifyFactory factory()
          Call this to get the instance
static void register(java.lang.Class<?> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected static ObjectifyFactory factory
Singleton instance

Constructor Detail

ObjectifyService

public ObjectifyService()
Method Detail

factory

public static ObjectifyFactory factory()
Call this to get the instance


begin

public static Objectify begin()
See Also:
ObjectifyFactory.begin()

beginTransaction

public static Objectify beginTransaction()
See Also:
ObjectifyFactory.beginTransaction()

begin

public static Objectify begin(ObjectifyOpts opts)
See Also:
ObjectifyFactory.begin(ObjectifyOpts)

register

public static void register(java.lang.Class<?> clazz)
See Also:
ObjectifyFactory.register(Class)


Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1