本文整理汇总了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();
}