Skip to content

Support Aware interfaces for ImportBeanDefinitionRegistrar [SPR-9568] #14202

Closed

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-9568 and commented

Implementations of ImportBeanDefinitionRegistrar might need access to a ResourceLoader in case they want to do things like component scanning or the like. The nicest way to get access to it is implementing ResourceLoaderAware I think.


Issue Links:

Activity

  1. spring-projects-issues commented on Nov 12, 2012

    @spring-projects-issues
    CollaboratorAuthor

    Oliver Drotbohm commented

    Other infrastructure injecting Aware interfaces should, e.g. BeanClassLoaderAware be supported as well.

  2. spring-projects-issues commented on Nov 12, 2012

    @spring-projects-issues
    CollaboratorAuthor

    Oliver Drotbohm commented

    Submitted pull request at #181.

  3. spring-projects-issues commented on Nov 12, 2012

    @spring-projects-issues
    CollaboratorAuthor

    Chris Beams commented

    commit 146a66fe0b7a0bb25b67ce5e2d1ca8a33039ec59
    Author: Oliver Gierke <[email protected]>
    Commit: Chris Beams <[email protected]>
    
        Support *Aware ImportBeanDefinitionRegistars
        
        Implementations of Spring's ImportBeanDefinitionRegistrar interface may
        now implement any of the following *Aware interfaces and have their
        respective methods called prior to #registerBeanDefinitions:
        
         - BeanFactoryAware
         - BeanClassLoaderAware
         - ResourceLoaderAware
        
        Issue: SPR-9568
    
  4. added
    type: enhancement
    in: core
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions