类 LibraryModule


  • public class LibraryModule
    extends Object
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      static void addMyStack​(org.apache.tapestry5.commons.MappedConfiguration<String,​org.apache.tapestry5.services.javascript.JavaScriptStack> configuration)  
      static void addWorker​(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.services.transform.ComponentClassTransformWorker2> configuration)  
      static void bind​(org.apache.tapestry5.ioc.ServiceBinder binder)  
      void configureStandardAssetFactories​(org.apache.tapestry5.commons.MappedConfiguration<String,​org.apache.tapestry5.services.AssetFactory> configuration)  
      static void contributeClasspathAssetAliasManager​(org.apache.tapestry5.commons.MappedConfiguration<String,​String> configuration)  
      static void contributeComponentClassResolver​(org.apache.tapestry5.commons.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration)  
      static void contributeComponentMessagesSource​(org.apache.tapestry5.commons.Resource componentRes, org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.commons.Resource> configuration)  
      static void contributeFactoryDefaults​(org.apache.tapestry5.commons.MappedConfiguration<String,​Object> configuration)  
      static void contributeIgnoredPathsFilter​(org.apache.tapestry5.commons.Configuration<String> configuration)
      配置忽略某些路径不让Tapestry5处理,支持Servlet和自定义Filter
      void contributeMarkupRenderer​(org.apache.tapestry5.commons.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.http.services.RequestGlobals requestGlobals, String contextPath, ISupportedLocales supportedLocales, org.apache.tapestry5.services.AssetSource assetSource)  
      static void contributeTypeCoercer​(org.apache.tapestry5.commons.MappedConfiguration<org.apache.tapestry5.commons.services.CoercionTuple.Key,​org.apache.tapestry5.commons.services.CoercionTuple> configuration)
      组件参数的转换器
      static void setupComponentsShims​(org.apache.tapestry5.commons.MappedConfiguration<String,​Object> configuration, org.apache.tapestry5.commons.Resource msg, org.apache.tapestry5.commons.Resource highcharts_core, org.apache.tapestry5.commons.Resource highcharts_exporting, org.apache.tapestry5.commons.Resource export_excel, boolean needBootstrap)  
      static void setupCoreJavaScriptStack​(org.apache.tapestry5.commons.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.commons.MappedConfiguration<String,​Object> configuration)  
    • 构造器详细资料

      • LibraryModule

        public LibraryModule()
    • 方法详细资料

      • bind

        public static void bind​(org.apache.tapestry5.ioc.ServiceBinder binder)
      • contributeFactoryDefaults

        @Contribute(org.apache.tapestry5.ioc.services.SymbolProvider.class)
        @FactoryDefaults
        public static void contributeFactoryDefaults​(org.apache.tapestry5.commons.MappedConfiguration<String,​Object> configuration)
      • contributeComponentClassResolver

        public static void contributeComponentClassResolver​(org.apache.tapestry5.commons.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration)
      • contributeClasspathAssetAliasManager

        public static void contributeClasspathAssetAliasManager​(org.apache.tapestry5.commons.MappedConfiguration<String,​String> configuration)
      • addMyStack

        @Contribute(org.apache.tapestry5.services.javascript.JavaScriptStackSource.class)
        public static void addMyStack​(org.apache.tapestry5.commons.MappedConfiguration<String,​org.apache.tapestry5.services.javascript.JavaScriptStack> configuration)
      • setupEnvironment

        @Contribute(org.apache.tapestry5.ioc.services.SymbolProvider.class)
        @ApplicationDefaults
        public static void setupEnvironment​(org.apache.tapestry5.commons.MappedConfiguration<String,​Object> configuration)
      • contributeComponentMessagesSource

        public static void contributeComponentMessagesSource​(@Value("/component.properties")
                                                             org.apache.tapestry5.commons.Resource componentRes,
                                                             org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.commons.Resource> configuration)
      • contributeMarkupRenderer

        public void contributeMarkupRenderer​(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.services.MarkupRendererFilter> configuration,
                                             org.apache.tapestry5.services.javascript.ModuleManager moduleManager,
                                             org.apache.tapestry5.services.Environment environment,
                                             @Symbol("tapestry.omit-generator-meta")
                                             boolean omitGeneratorMeta,
                                             @Symbol("path.comassets")
                                             String rjzjhjsdir,
                                             @Symbol("tapestry.version")
                                             String tapestryVersion,
                                             org.apache.tapestry5.http.services.RequestGlobals requestGlobals,
                                             @Symbol("tapestry.context-path")
                                             String contextPath,
                                             ISupportedLocales supportedLocales,
                                             org.apache.tapestry5.services.AssetSource assetSource)
      • addWorker

        @Contribute(org.apache.tapestry5.services.transform.ComponentClassTransformWorker2.class)
        @Primary
        public static void addWorker​(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.services.transform.ComponentClassTransformWorker2> configuration)
      • configureStandardAssetFactories

        @Contribute(org.apache.tapestry5.services.AssetSource.class)
        public void configureStandardAssetFactories​(org.apache.tapestry5.commons.MappedConfiguration<String,​org.apache.tapestry5.services.AssetFactory> configuration)
      • setupComponentsShims

        @Contribute(org.apache.tapestry5.services.javascript.ModuleManager.class)
        public static void setupComponentsShims​(org.apache.tapestry5.commons.MappedConfiguration<String,​Object> configuration,
                                                @Inject @Path("/META-INF/assets/rjzjh/locale/msg.js")
                                                org.apache.tapestry5.commons.Resource msg,
                                                @Inject @Path("/META-INF/assets/rjzjh/highcharts/highcharts.js")
                                                org.apache.tapestry5.commons.Resource highcharts_core,
                                                @Inject @Path("/META-INF/assets/rjzjh/highcharts/modules/exporting.js")
                                                org.apache.tapestry5.commons.Resource highcharts_exporting,
                                                @Inject @Path("/META-INF/assets/rjzjh/highcharts/modules/export-excel.js")
                                                org.apache.tapestry5.commons.Resource export_excel,
                                                @Symbol("need.bootstrap")
                                                boolean needBootstrap)
      • setupCoreJavaScriptStack

        @Contribute(org.apache.tapestry5.services.javascript.JavaScriptStack.class)
        public static void setupCoreJavaScriptStack​(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.services.javascript.StackExtension> configuration,
                                                    org.apache.tapestry5.services.compatibility.Compatibility compatibility,
                                                    @Symbol("need.bootstrap")
                                                    boolean needBootstrap,
                                                    ISupportedLocales supportedLocales,
                                                    org.apache.tapestry5.services.javascript.JavaScriptSupport javaScriptSupport)
        增加核心js,注意,由于它是无序的,不能把与顺序有关的js放到核心js中,可以采用 work中addHtmlLibrary方式加到页面中
      • contributeTypeCoercer

        public static void contributeTypeCoercer​(org.apache.tapestry5.commons.MappedConfiguration<org.apache.tapestry5.commons.services.CoercionTuple.Key,​org.apache.tapestry5.commons.services.CoercionTuple> configuration)
        组件参数的转换器
        参数:
        configuration -
      • contributeIgnoredPathsFilter

        public static void contributeIgnoredPathsFilter​(org.apache.tapestry5.commons.Configuration<String> configuration)
        配置忽略某些路径不让Tapestry5处理,支持Servlet和自定义Filter
        参数:
        configuration -