Announcement Announcement Module
No announcement yet.
Delegate ResourceLoader Beans? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Delegate ResourceLoader Beans?

    I'm trying to find the cleanest way to implement my own Resource namespace (other than "classpath:", "file:" or "http:"). For now I am extending FileSystemXmlApplicationContext and overriding getResource() to provide my custom logic, but I was wondering if there was anyway to implement a kind of "ResourceLoaderBean" that would be detected by the AppContext which would then delegate resource loading requests to it, applying default behavior upon failure. There possibly could be many of those instantiated, each specifying the namespace(s) they apply to.