本文整理汇总了Java中org.apache.tapestry5.internal.InternalConstants类的典型用法代码示例。如果您正苦于以下问题:Java InternalConstants类的具体用法?Java InternalConstants怎么用?Java InternalConstants使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InternalConstants类属于org.apache.tapestry5.internal包,在下文中一共展示了InternalConstants类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createSymbolProvider
import org.apache.tapestry5.internal.InternalConstants; //导入依赖的package包/类
protected SymbolProvider createSymbolProvider(Map<String, String> diSymbols) {
Map<String, String> params = new HashMap<>(diSymbols);
// override DI symbols if set explicitly in the factory
if (productionMode != null) {
params.put(SymbolConstants.PRODUCTION_MODE, Boolean.toString(productionMode));
}
if (executionModes != null) {
params.put(SymbolConstants.EXECUTION_MODE, executionModes);
}
if (charset != null) {
params.put(SymbolConstants.CHARSET, charset);
}
if (appPackage != null) {
params.put(InternalConstants.TAPESTRY_APP_PACKAGE_PARAM, appPackage);
} else {
// sanity check
if (!params.containsKey(InternalConstants.TAPESTRY_APP_PACKAGE_PARAM)) {
throw new IllegalStateException("Tapestry app package is not defined. Use 'tapestry.appPackage' config " +
"or inject 'tapestry.app-package' symbol with this value.");
}
}
if (supportedLocales != null) {
params.put(SymbolConstants.SUPPORTED_LOCALES, supportedLocales);
}
// provide default values for symbols if not defined in DI
if (!params.containsKey(SymbolConstants.GZIP_COMPRESSION_ENABLED)) {
// compression should be configured at the Jetty level
params.put(SymbolConstants.GZIP_COMPRESSION_ENABLED, "false");
}
return new MapSymbolProvider(params);
}
开发者ID:bootique,项目名称:bootique-tapestry,代码行数:40,代码来源:BQTapestryFilterFactory.java
示例2: defaultsSymbols
import org.apache.tapestry5.internal.InternalConstants; //导入依赖的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: getTransformedContentType
import org.apache.tapestry5.internal.InternalConstants; //导入依赖的package包/类
public ContentType getTransformedContentType() {
return InternalConstants.JAVASCRIPT_CONTENT_TYPE;
}
开发者ID:ffacon,项目名称:tapestry5-angular2,代码行数:4,代码来源:TSCompiler.java
示例4: getTransformedContentType
import org.apache.tapestry5.internal.InternalConstants; //导入依赖的package包/类
@Override
public ContentType getTransformedContentType() {
return InternalConstants.JAVASCRIPT_CONTENT_TYPE;
}
开发者ID:eddyson-de,项目名称:tapestry-react,代码行数:5,代码来源:BabelResourceTransformer.java
示例5: getContentType
import org.apache.tapestry5.internal.InternalConstants; //导入依赖的package包/类
public ContentType getContentType() {
String type = response.getHeader(InternalConstants.CONTENT_TYPE_ATTRIBUTE_NAME);
return new ContentType(type);
}
开发者ID:vladaspasic,项目名称:tapestry-oauth,代码行数:6,代码来源:OAuthResponse.java
注:本文中的org.apache.tapestry5.internal.InternalConstants类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论