美文网首页
webx笔记-pull service(模板对象)

webx笔记-pull service(模板对象)

作者: 兴浩 | 来源:发表于2018-10-07 14:54 被阅读5次

    pull service实际为template注入对象,类似velocity-toolbox,只不过这个命名让人以为是跟消息相关...

    xml对象定义

        <services:pull>
            <pull-factories:utils />
            <pull-factories:rundata-tool />
            <pull-factories:csrfToken />
            <pull-factories:form-tool />
            <pull-factories:control-tool />
            <pull-factories:uris-tool />
        </services:pull>
    

    附模板对象:

    [
        {
            "name": "stringEscapeUtil",
            "qualifiedName": "/utils/stringEscapeUtil"
        },
        {
            "name": "utils",
            "qualifiedName": "/utils/utils"
        },
        {
            "name": "localeUtil",
            "qualifiedName": "/utils/localeUtil"
        },
        {
            "name": "control",
            "qualifiedName": "/control"
        },
        {
            "name": "rundata",
            "qualifiedName": "/rundata"
        },
        {
            "name": "arrayUtil",
            "qualifiedName": "/utils/arrayUtil"
        },
        {
            "name": "csrfToken",
            "qualifiedName": "/csrfToken"
        },
        {
            "name": "objectUtil",
            "qualifiedName": "/utils/objectUtil"
        },
        {
            "name": "app1Content",
            "qualifiedName": "/uris/app1Content"
        },
        {
            "name": "mathUtil",
            "qualifiedName": "/utils/mathUtil"
        },
        {
            "name": "classUtil",
            "qualifiedName": "/utils/classUtil"
        },
        {
            "name": "app1Link",
            "qualifiedName": "/uris/app1Link"
        },
        {
            "name": "stringUtil",
            "qualifiedName": "/utils/stringUtil"
        },
        {
            "name": "classLoaderUtil",
            "qualifiedName": "/utils/classLoaderUtil"
        },
        {
            "name": "exceptionUtil",
            "qualifiedName": "/utils/exceptionUtil"
        },
        {
            "name": "form",
            "qualifiedName": "/form"
        },
        {
            "name": "streamUtil",
            "qualifiedName": "/utils/streamUtil"
        },
        {
            "name": "uris",
            "qualifiedName": "/uris"
        },
        {
            "name": "messageUtil",
            "qualifiedName": "/utils/messageUtil"
        },
        {
            "name": "systemUtil",
            "qualifiedName": "/utils/systemUtil"
        },
        {
            "name": "fileUtil",
            "qualifiedName": "/utils/fileUtil"
        }
    ]
    

    参考文档:
    https://www.cnblogs.com/tuifeideyouran/p/4485889.html

    相关文章

      网友评论

          本文标题:webx笔记-pull service(模板对象)

          本文链接:https://www.haomeiwen.com/subject/ljylaftx.html