Skip to content

关于spring+p4j实现的讨论 #42

@xinkunZ

Description

@xinkunZ

具体不爽的点:

  1. 如果想使用spring实现一套插件,明明只需要使用spring context即可,为什么要费这么大劲要用springboot来实现,new annotation application context应该更简单
  2. SpringBootstrap类里列举了这么多auto configuration需要排除,真的 看到这个类我心都凉了半截。有没有一种可能,就是,咱只要用简单的spring context就不需要操心这些
  3. 明明p4j提供了明确的classloader加载顺序规范(ClassLoadingStrategy),我实现的时候也没有用这套。但是SpringBootPluginClassLoader这个类实现的真丑,明明内部loadClass可以按约定先平台、后插件jar,居然还提供pluginFirstClasses让调用者关心细节。SpringBootstrap也没有指定父容器的classLoader

新项目已经被我重新实现了,仍然是spring+p4j,如果想看我也可以放出源码

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions