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


Java MappedConfiguration.override方法代码示例

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


在下文中一共展示了MappedConfiguration.override方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: contributeFactoryDefaults

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeFactoryDefaults(MappedConfiguration<String, Object> configuration) {
    // The application version number is incorporated into URLs for some
    // assets. Web browsers will cache assets because of the far future
    // expires
    // header. If existing assets are changed, the version number should
    // also
    // change, to force the browser to download new versions. This overrides
    // Tapesty's default
    // (a random hexadecimal number), but may be further overridden by
    // DevelopmentModule or
    // QaModule.
    configuration.override(SymbolConstants.APPLICATION_VERSION, "0.0.3-SNAPSHOT");
}
 
开发者ID:beargiles,项目名称:project-student,代码行数:14,代码来源:AppModule.java

示例2: contributeFactoryDefaults

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeFactoryDefaults(MappedConfiguration<String, Object> configuration) {
	// The application version number is incorprated into URLs for some
	// assets. Web browsers will cache assets because of the far future expires
	// header. If existing assets are changed, the version number should also
	// change, to force the browser to download new versions. This overrides
	// Tapesty's default
	// (a random hexadecimal number), but may be further overriden by
	// DevelopmentModule or
	// QaModule.
	configuration.override(SymbolConstants.APPLICATION_VERSION, "v"+AppConstants.VERSION);
	configuration.override(SymbolConstants.CLUSTERED_SESSIONS,false);
	configuration.override(SymbolConstants.OMIT_GENERATOR_META,true);
}
 
开发者ID:onyxbits,项目名称:TradeTrax,代码行数:14,代码来源:AppModule.java

示例3: contributeApplicationDefaults

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeApplicationDefaults(
        MappedConfiguration<String, Object> configuration)
{
    // The factory default is true but during the early stages of an application
    // overriding to false is a good idea. In addition, this is often overridden
    // on the command line as -Dtapestry.production-mode=false
    configuration.override(SymbolConstants.PRODUCTION_MODE, false);

    // The application version number is incorprated into URLs for some
    // assets. Web browsers will cache assets because of the far future expires
    // header. If existing assets are changed, the version number should also
    // change, to force the browser to download new versions.
    configuration.override(SymbolConstants.APPLICATION_VERSION, "4.0.8-SNAPSHOT-DEV");
}
 
开发者ID:Sotera,项目名称:graphene-walker,代码行数:15,代码来源:DevelopmentModule.java

示例4: contributeFactoryDefaults

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeFactoryDefaults(
        MappedConfiguration<String, Object> configuration)
{
    // The application version number is incorprated into URLs for some
    // assets. Web browsers will cache assets because of the far future expires
    // header. If existing assets are changed, the version number should also
    // change, to force the browser to download new versions. This overrides Tapesty's default
    // (a random hexadecimal number), but may be further overriden by DevelopmentModule or
    // QaModule.
    configuration.override(SymbolConstants.APPLICATION_VERSION, "1.0.0");
}
 
开发者ID:wso2as-developer,项目名称:tapestry-samples,代码行数:12,代码来源:AppModule.java

示例5: contributeFactoryDefaults

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeFactoryDefaults(
        MappedConfiguration<String, Object> configuration)
{
    // The application version number is incorprated into URLs for some
    // assets. Web browsers will cache assets because of the far future expires
    // header. If existing assets are changed, the version number should also
    // change, to force the browser to download new versions. This overrides Tapesty's default
    // (a random hexadecimal number), but may be further overriden by DevelopmentModule or
    // QaModule.
    configuration.override(SymbolConstants.APPLICATION_VERSION, "0.1-SNAPSHOT");
}
 
开发者ID:rlentz,项目名称:tahi_jndi,代码行数:12,代码来源:AppModule.java

示例6: contributeFactoryDefaults

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeFactoryDefaults(
        MappedConfiguration<String, Object> configuration)
{
    // The application version number is incorprated into URLs for some
    // assets. Web browsers will cache assets because of the far future expires
    // header. If existing assets are changed, the version number should also
    // change, to force the browser to download new versions. This overrides Tapesty's default
    // (a random hexadecimal number), but may be further overriden by DevelopmentModule or
    // QaModule.
    configuration.override(SymbolConstants.APPLICATION_VERSION, VERSION);
}
 
开发者ID:Allogy,项目名称:isqrl-server,代码行数:12,代码来源:IsqrlModule.java

示例7: contributeFactoryDefaults

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeFactoryDefaults(MappedConfiguration<String, Object> configuration) {
    configuration.override(SymbolConstants.APPLICATION_VERSION, Constants.version);
    configuration.override(SymbolConstants.PRODUCTION_MODE, false);
    // configuration.override(SymbolConstants.PRODUCTION_MODE, true);
}
 
开发者ID:Zabrimus,项目名称:vdr-jonglisto,代码行数:6,代码来源:AppModule.java

示例8: contributeApplicationDefaults

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeApplicationDefaults(
		MappedConfiguration<String, Object> configuration) {
	configuration.override(G_SymbolConstants.APPLICATION_NAME,
			"Graphene-Walker");
	configuration.override(SecuritySymbols.SUCCESS_URL, "/index");
}
 
开发者ID:Sotera,项目名称:graphene-walker,代码行数:7,代码来源:AppModule.java

示例9: contributeFactoryDefaults

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeFactoryDefaults(MappedConfiguration<String, Object> configuration) {
    configuration.override(SymbolConstants.HMAC_PASSPHRASE,"datepicker");
}
 
开发者ID:trsvax,项目名称:tapestry-datepicker,代码行数:4,代码来源:AppModule.java


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