本文整理汇总了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");
}
示例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);
}
示例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");
}
示例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");
}
示例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");
}
示例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);
}
示例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);
}
示例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");
}
示例9: contributeFactoryDefaults
import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeFactoryDefaults(MappedConfiguration<String, Object> configuration) {
configuration.override(SymbolConstants.HMAC_PASSPHRASE,"datepicker");
}