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


Java ApplicationDefaults类代码示例

本文整理汇总了Java中org.apache.tapestry5.ioc.services.ApplicationDefaults的典型用法代码示例。如果您正苦于以下问题:Java ApplicationDefaults类的具体用法?Java ApplicationDefaults怎么用?Java ApplicationDefaults使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ApplicationDefaults类属于org.apache.tapestry5.ioc.services包,在下文中一共展示了ApplicationDefaults类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setupEnvironment

import org.apache.tapestry5.ioc.services.ApplicationDefaults; //导入依赖的package包/类
@Contribute(SymbolProvider.class)
@ApplicationDefaults
public static void setupEnvironment(MappedConfiguration<String, Object> configuration) {
    configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery");
    configuration.add(SymbolConstants.BOOTSTRAP_ROOT, "context:jbootstrap");
    configuration.add(SymbolConstants.HMAC_PASSPHRASE, new SecureRandomNumberGenerator().getSecureRandom().toString());

    configuration.add(SymbolConstants.MINIFICATION_ENABLED, true);
    configuration.add(SymbolConstants.ENABLE_HTML5_SUPPORT, true);
    configuration.add(SymbolConstants.ENABLE_PAGELOADING_MASK, true);
    configuration.add(SymbolConstants.SUPPORTED_LOCALES, "de,en");
    configuration.add(SymbolConstants.CLUSTERED_SESSIONS, false);
    configuration.add(SymbolConstants.COMBINE_SCRIPTS, true);
    configuration.add(SymbolConstants.COMPACT_JSON, true);
    configuration.add(SymbolConstants.COMPRESS_WHITESPACE, true);
    configuration.add(SymbolConstants.GZIP_COMPRESSION_ENABLED, true);
    configuration.add(SymbolConstants.PRELOADER_MODE, PreloaderMode.ALWAYS);

    configuration.add("tapestry.closure-compiler-level", "SIMPLE_OPTIMIZATIONS"); 

    // INFO:
    // only in production 1 to 5 minutes
    // configuration.add(SymbolConstants.FILE_CHECK_INTERVAL, 60);
}
 
开发者ID:Zabrimus,项目名称:vdr-jonglisto,代码行数:25,代码来源:AppModule.java

示例2: defaultsSymbols

import org.apache.tapestry5.ioc.services.ApplicationDefaults; //导入依赖的package包/类
@Contribute(SymbolProvider.class)
@ApplicationDefaults
public static void defaultsSymbols(MappedConfiguration<String, Object> configuration)
{
    configuration.add(InternalConstants.TAPESTRY_APP_PACKAGE_PARAM, JpaTestModule.class.getPackage().getName());
    // configuration.add(InternalSymbols.APP_PACKAGE_PATH, "org/tynamo/model/jpa");
}
 
开发者ID:satago,项目名称:tapestry-jpa-transactions,代码行数:8,代码来源:JpaTestModule.java

示例3: provideSymbols

import org.apache.tapestry5.ioc.services.ApplicationDefaults; //导入依赖的package包/类
@Contribute(SymbolProvider.class)
@ApplicationDefaults
public static void provideSymbols(
		MappedConfiguration<String, String> configuration) {
	configuration.add(ResteasySymbols.MAPPING_PREFIX, "/rest");

	// This disables the autoscanning of graphene.walker.web.rest
	configuration.add(ResteasySymbols.AUTOSCAN_REST_PACKAGE, "false");
}
 
开发者ID:Sotera,项目名称:graphene-walker,代码行数:10,代码来源:AppRestModule.java

示例4: configureApplicationDefaults

import org.apache.tapestry5.ioc.services.ApplicationDefaults; //导入依赖的package包/类
@Contribute(SymbolProvider.class)
@ApplicationDefaults
public static void configureApplicationDefaults(final MappedConfiguration<String, Object> configuration) {
  configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery");
}
 
开发者ID:eddyson-de,项目名称:tapestry-react-select,代码行数:6,代码来源:TestModule.java

示例5: contributeApplicationDefaults

import org.apache.tapestry5.ioc.services.ApplicationDefaults; //导入依赖的package包/类
@Contribute(SymbolProvider.class)
@ApplicationDefaults
   public static void contributeApplicationDefaults(MappedConfiguration<String, Object> configuration)
   {
   	
   	
   	configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en,fr,de,ru,ua");
   	
   	configuration.add(SymbolConstants.PRODUCTION_MODE, false);
   	
   	configuration.add(SymbolConstants.COMBINE_SCRIPTS, false);
   	
   	configuration.add(SymbolConstants.COMPRESS_WHITESPACE, false);
       
   	configuration.add(SymbolConstants.GZIP_COMPRESSION_ENABLED, false);
   	
   	configuration.add("demo-src-dir", "");
   	
   	configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery");

    }
 
开发者ID:ffacon,项目名称:tapestry5-angular2,代码行数:22,代码来源:AppModule.java

示例6: configureApplicationDefaults

import org.apache.tapestry5.ioc.services.ApplicationDefaults; //导入依赖的package包/类
@Contribute(SymbolProvider.class)
@ApplicationDefaults
public static void configureApplicationDefaults(final MappedConfiguration<String, Object> configuration) {
  configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
  configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery");
}
 
开发者ID:eddyson-de,项目名称:tapestry-react,代码行数:7,代码来源:TestModule.java

示例7: provideApplicationDefaults

import org.apache.tapestry5.ioc.services.ApplicationDefaults; //导入依赖的package包/类
@Contribute(SymbolProvider.class)
@ApplicationDefaults
public static void provideApplicationDefaults(MappedConfiguration<String, String> configuration){
	
	configuration.add(OAuthSymbolConstants.OAUTH_CALLBACK_PATH, "oauth/callback");
	
}
 
开发者ID:vladaspasic,项目名称:tapestry-oauth,代码行数:8,代码来源:OAuthModule.java


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