本文整理匯總了Java中com.googlecode.objectify.ObjectifyService.factory方法的典型用法代碼示例。如果您正苦於以下問題:Java ObjectifyService.factory方法的具體用法?Java ObjectifyService.factory怎麽用?Java ObjectifyService.factory使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.googlecode.objectify.ObjectifyService
的用法示例。
在下文中一共展示了ObjectifyService.factory方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: before
import com.googlecode.objectify.ObjectifyService; //導入方法依賴的package包/類
@Before
public void before() {
helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig()).setUp();
// Clear out the factory so that it requires re-registration on each test method.
// Otherwise, static registration of types in one method would persist across methods.
initOfy();
factory = ObjectifyService.factory();
ObjectifyService.setFactory(new ObjectifyFactory(false));
}
示例2: addDefaultTranslators
import com.googlecode.objectify.ObjectifyService; //導入方法依賴的package包/類
public static void addDefaultTranslators() {
// register Objectify converter to convert between java.uil.Date and org.joda.time.DateTime
ObjectifyFactory objectifyFactory = ObjectifyService.factory();
JodaTimeTranslators.add(objectifyFactory);
objectifyFactory.getTranslators().add(new UUIDTranslatorFactory());
}
示例3: factory
import com.googlecode.objectify.ObjectifyService; //導入方法依賴的package包/類
public static ObjectifyFactory factory() {
return ObjectifyService.factory();
}
示例4: factory
import com.googlecode.objectify.ObjectifyService; //導入方法依賴的package包/類
public static ObjectifyFactory factory() {
return ObjectifyService.factory();
}
示例5: ShardedCounter
import com.googlecode.objectify.ObjectifyService; //導入方法依賴的package包/類
private ShardedCounter() {
of = ObjectifyService.factory();
}
示例6: factory
import com.googlecode.objectify.ObjectifyService; //導入方法依賴的package包/類
private static ObjectifyFactory factory () {
return ObjectifyService.factory();
}
示例7: factory
import com.googlecode.objectify.ObjectifyService; //導入方法依賴的package包/類
/**
* Get the Objectify instance factory.
* Equivalent to calling {@link ObjectifyService#factory()}
*
* @return The Objectify instance factory.
*/
default ObjectifyFactory factory() {
return ObjectifyService.factory();
}
示例8: factory
import com.googlecode.objectify.ObjectifyService; //導入方法依賴的package包/類
/**
* Use this static method for getting the Objectify service factory.
* @return ObjectifyFactory.
*/
public static ObjectifyFactory factory() {
return ObjectifyService.factory();
}
示例9: factory
import com.googlecode.objectify.ObjectifyService; //導入方法依賴的package包/類
/**
* Returns the Objectify factory service.
* @return The factory service.
*/
public static ObjectifyFactory factory() {
return ObjectifyService.factory();
}
示例10: factory
import com.googlecode.objectify.ObjectifyService; //導入方法依賴的package包/類
/**
* Method that returns the objectify factory reference.
*
* @return Objectify.
*/
public static ObjectifyFactory factory() {
return ObjectifyService.factory();
}