当前位置: 首页>>代码示例>>Java>>正文


Java ObjectifyService.factory方法代码示例

本文整理汇总了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));
}
 
开发者ID:google,项目名称:nomulus,代码行数:10,代码来源:OfyFilterTest.java

示例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());
}
 
开发者ID:monPlan,项目名称:springboot-spwa-gae-demo,代码行数:7,代码来源:ObjectifyModule.java

示例3: factory

import com.googlecode.objectify.ObjectifyService; //导入方法依赖的package包/类
public static ObjectifyFactory factory() {
    return ObjectifyService.factory();
}
 
开发者ID:dreaminglion,项目名称:iosched-reader,代码行数:4,代码来源:OfyService.java

示例4: factory

import com.googlecode.objectify.ObjectifyService; //导入方法依赖的package包/类
public static ObjectifyFactory factory() {
	return ObjectifyService.factory();
}
 
开发者ID:LabPLC,项目名称:MapatonAPI,代码行数:4,代码来源:OfyService.java

示例5: ShardedCounter

import com.googlecode.objectify.ObjectifyService; //导入方法依赖的package包/类
private ShardedCounter() {
    of = ObjectifyService.factory();
}
 
开发者ID:tim-lebedkov,项目名称:npackd-gae-web,代码行数:4,代码来源:ShardedCounter.java

示例6: factory

import com.googlecode.objectify.ObjectifyService; //导入方法依赖的package包/类
private static ObjectifyFactory factory () {
	return ObjectifyService.factory();
}
 
开发者ID:billy1380,项目名称:blogwt,代码行数:4,代码来源:PersistenceServiceProvider.java

示例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();
}
 
开发者ID:n15g,项目名称:spring-boot-gae,代码行数:10,代码来源:ObjectifyProxy.java

示例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();
}
 
开发者ID:mzdu,项目名称:AdSearch_Endpoints,代码行数:8,代码来源:OfyService.java

示例9: factory

import com.googlecode.objectify.ObjectifyService; //导入方法依赖的package包/类
/**
 * Returns the Objectify factory service.
 * @return The factory service.
 */
public static ObjectifyFactory factory() {
    return ObjectifyService.factory();
}
 
开发者ID:googlearchive,项目名称:MobileShoppingAssistant-sample,代码行数:8,代码来源:OfyService.java

示例10: factory

import com.googlecode.objectify.ObjectifyService; //导入方法依赖的package包/类
/**
 * Method that returns the objectify factory reference.
 *
 * @return Objectify.
 */
public static ObjectifyFactory factory() {
  return ObjectifyService.factory();
}
 
开发者ID:ciandt-dev,项目名称:tech-gallery,代码行数:9,代码来源:OfyService.java


注:本文中的com.googlecode.objectify.ObjectifyService.factory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。