-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add utlity config file resource lookup
Located on Context to allow looking up resources from the webapp (prefixed with "webapp:") and make the resource lookup API more visible.
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I believe that this implementation is not correct. Look how the
ConfigResourceLoader
is implemented. It throws and IOException from the URISyntaxException and a FileNotFoundException if the resource is not available:and
Please stick to that pattern otherwise I need to handle different approaches in the listener.
So it can never return
null
, only throw an exception.