public class LibraryModule extends Object
| 构造器和说明 |
|---|
LibraryModule() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addMyStack(org.apache.tapestry5.ioc.MappedConfiguration<String,org.apache.tapestry5.services.javascript.JavaScriptStack> configuration) |
static void |
addWorker(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.transform.ComponentClassTransformWorker2> configuration) |
static void |
bind(org.apache.tapestry5.ioc.ServiceBinder binder) |
void |
configureStandardAssetFactories(org.apache.tapestry5.ioc.MappedConfiguration<String,org.apache.tapestry5.services.AssetFactory> configuration) |
static void |
contributeClasspathAssetAliasManager(org.apache.tapestry5.ioc.MappedConfiguration<String,String> configuration) |
static void |
contributeComponentClassResolver(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration) |
static void |
contributeComponentMessagesSource(org.apache.tapestry5.ioc.Resource componentRes,
org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.ioc.Resource> configuration) |
static void |
contributeFactoryDefaults(org.apache.tapestry5.ioc.MappedConfiguration<String,Object> configuration) |
static void |
contributeIgnoredPathsFilter(org.apache.tapestry5.ioc.Configuration<String> configuration)
配置忽略某些路径不让Tapestry5处理,支持Servlet和自定义Filter
|
void |
contributeMarkupRenderer(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.MarkupRendererFilter> configuration,
org.apache.tapestry5.services.javascript.ModuleManager moduleManager,
org.apache.tapestry5.services.Environment environment,
boolean omitGeneratorMeta,
String rjzjhjsdir,
String tapestryVersion,
org.apache.tapestry5.services.RequestGlobals requestGlobals,
String cocntextPath,
ISupportedLocales supportedLocales,
org.apache.tapestry5.services.AssetSource assetSource) |
static void |
contributeTypeCoercer(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.ioc.services.CoercionTuple> configuration)
组件参数的转换器
|
static void |
setupComponentsShims(org.apache.tapestry5.ioc.MappedConfiguration<String,Object> configuration,
org.apache.tapestry5.ioc.Resource msg,
org.apache.tapestry5.ioc.Resource highcharts_core,
org.apache.tapestry5.ioc.Resource highcharts_exporting,
org.apache.tapestry5.ioc.Resource export_excel,
boolean needBootstrap) |
static void |
setupCoreJavaScriptStack(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.javascript.StackExtension> configuration,
org.apache.tapestry5.services.compatibility.Compatibility compatibility,
boolean needBootstrap,
ISupportedLocales supportedLocales,
org.apache.tapestry5.services.javascript.JavaScriptSupport javaScriptSupport)
增加核心js,注意,由于它是无序的,不能把与顺序有关的js放到核心js中,可以采用 work中addHtmlLibrary方式加到页面中
|
static void |
setupEnvironment(org.apache.tapestry5.ioc.MappedConfiguration<String,Object> configuration) |
public static void bind(org.apache.tapestry5.ioc.ServiceBinder binder)
@Contribute(value=org.apache.tapestry5.ioc.services.SymbolProvider.class) @FactoryDefaults public static void contributeFactoryDefaults(org.apache.tapestry5.ioc.MappedConfiguration<String,Object> configuration)
public static void contributeComponentClassResolver(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration)
public static void contributeClasspathAssetAliasManager(org.apache.tapestry5.ioc.MappedConfiguration<String,String> configuration)
@Contribute(value=org.apache.tapestry5.services.javascript.JavaScriptStackSource.class) public static void addMyStack(org.apache.tapestry5.ioc.MappedConfiguration<String,org.apache.tapestry5.services.javascript.JavaScriptStack> configuration)
@Contribute(value=org.apache.tapestry5.ioc.services.SymbolProvider.class) @ApplicationDefaults public static void setupEnvironment(org.apache.tapestry5.ioc.MappedConfiguration<String,Object> configuration)
public static void contributeComponentMessagesSource(@Value(value="/component.properties")
org.apache.tapestry5.ioc.Resource componentRes,
org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.ioc.Resource> configuration)
public void contributeMarkupRenderer(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.MarkupRendererFilter> configuration,
org.apache.tapestry5.services.javascript.ModuleManager moduleManager,
org.apache.tapestry5.services.Environment environment,
@Symbol(value="tapestry.omit-generator-meta")
boolean omitGeneratorMeta,
@Symbol(value="path.comassets")
String rjzjhjsdir,
@Symbol(value="tapestry.version")
String tapestryVersion,
org.apache.tapestry5.services.RequestGlobals requestGlobals,
@Symbol(value="tapestry.context-path")
String cocntextPath,
ISupportedLocales supportedLocales,
org.apache.tapestry5.services.AssetSource assetSource)
@Contribute(value=org.apache.tapestry5.services.transform.ComponentClassTransformWorker2.class) @Primary public static void addWorker(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.transform.ComponentClassTransformWorker2> configuration)
@Contribute(value=org.apache.tapestry5.services.AssetSource.class) public void configureStandardAssetFactories(org.apache.tapestry5.ioc.MappedConfiguration<String,org.apache.tapestry5.services.AssetFactory> configuration)
@Contribute(value=org.apache.tapestry5.services.javascript.ModuleManager.class) public static void setupComponentsShims(org.apache.tapestry5.ioc.MappedConfiguration<String,Object> configuration, @Inject@Path(value="/META-INF/assets/rjzjh/locale/msg.js") org.apache.tapestry5.ioc.Resource msg, @Inject@Path(value="/META-INF/assets/rjzjh/highcharts/highcharts.js") org.apache.tapestry5.ioc.Resource highcharts_core, @Inject@Path(value="/META-INF/assets/rjzjh/highcharts/modules/exporting.js") org.apache.tapestry5.ioc.Resource highcharts_exporting, @Inject@Path(value="/META-INF/assets/rjzjh/highcharts/modules/export-excel.js") org.apache.tapestry5.ioc.Resource export_excel, @Symbol(value="need.bootstrap") boolean needBootstrap)
@Contribute(value=org.apache.tapestry5.services.javascript.JavaScriptStack.class)
public static void setupCoreJavaScriptStack(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.javascript.StackExtension> configuration,
org.apache.tapestry5.services.compatibility.Compatibility compatibility,
@Symbol(value="need.bootstrap")
boolean needBootstrap,
ISupportedLocales supportedLocales,
org.apache.tapestry5.services.javascript.JavaScriptSupport javaScriptSupport)
public static void contributeTypeCoercer(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.ioc.services.CoercionTuple> configuration)
configuration - public static void contributeIgnoredPathsFilter(org.apache.tapestry5.ioc.Configuration<String> configuration)
configuration - Copyright © 2016. All rights reserved.