Giter Site home page Giter Site logo

spring_spi_demo's Introduction

该项目仅仅是一个spring的测试项目,里面涉及了对spring拓展的运用, 通过对spring拓展的运用,来实现spi的技术。其中有三种方式去实现。 1.通过继承BeanDefinitionRegistryPostProcessor类 在spring加载PostProcessor类型类的时候,自动执行postProcessBeanDefinitionRegistry方法 拿到BeanDefinitionRegistry,也就是BeanDefinition注册器,接着自己生成 BeanDefinition来实现BeanDefinition的注册。 2.通过继承BeanDefinitionRegistryPostProcessor类,自动执行postProcessBeanFactory方法的时候 拿到beanFactory,并且通过beanFactory注册BeanDefinition来实现 3.通过实现继承importselect,在扫描注解@import的时候。执行selectImports方法,来实现类的注册。

spring_spi_demo's People

Contributors

young287 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.