Code Monkey home page Code Monkey logo

http-request-tag-engine's Introduction

HttpRequestTagEngine

1. 总体框架

  • http-request-tag-engine
    • http-request-tag-engine-core
    • http-request-tag-engine-plugin-core
    • http-request-tag-engine-plugin-template
      • http-reqeust-tag-engine-plugin-atom-id
    • http-request-tag-engine-examples
      • BasicExample
    • dist
      • http-request-tag-engine-0.0.1-dist.jar
    • repository
      • com.jstelecom.it.http-request-tag-engine
        • http-request-tag-engine-plugin-core
          • 0.0.1
            • http-request-tag-engine-plugin-core-0.0.1-full.jar
2. 模块说明
  • http-request-tag-engine-core
    标签引擎的核心模块
    负责加载配置、动态加载插件、调用插件 生成最终的Release包,并且压缩体积
  • http-request-tag-engine-plugin-core
    标签引擎的插件核心
    负责指定帮助函数和标准接口
  • http-request-tag-engine-plugin-template
    标签引擎的插件模板
    负责管理插件模块
  • http-request-tag-engine-plugin-atom-id
    标签引擎的插件(举例)
    插件必须从插件模板继承,必须实现插件模板定义的接口和功能
  • http-request-tag-engine-examples
    使用样例库

3. Release包

  • 位置
    /dist/http-request-tag-engine-${project.version}-dist.jar
  • 包含
    HttpRequestTagEngine
    config
      |-core.xml
      |-plugins.xml
    plugins
      |-http-request-tag-engine-plugin-atom-id-${project.version}-full.jar

4. 调用举例

	String strDistJar = "../dist/http-request-tag-engine-0.0.1-dist.jar";
String strHttpRequestTagEngine = "HttpRequestTagEngine";
File fileDistJar = new File(strDistJar);
URL urlDistJar = fileDistJar.toURI().toURL();
URLClassLoader classLoader = new URLClassLoader(new URL[]{ urlDistJar });
Class<?> classHttpRequestTagEngine = classLoader.loadClass(strHttpRequestTagEngine);
Object engine = classHttpRequestTagEngine.newInstance();
Method methodSetDpi = classHttpRequestTagEngine.getMethod("setDpi", String.class);
methodSetDpi.invoke(engine, "GW");
Method methodLoadPlugin = classHttpRequestTagEngine.getMethod("loadPlugin", String.class);
methodLoadPlugin.invoke(engine, "atom-id");
Method methodTagging = classHttpRequestTagEngine.getMethod("tagging", String.class);
methodTagging.invoke(engine

http-request-tag-engine's People

Contributors

liuhuisheep avatar xuxuanxuan avatar caerleon avatar

Watchers

John avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.