Allow ELResolver to be specified in Config#432
Conversation
| @@ -307,7 +309,10 @@ public Builder withMaxMacroRecursionDepth(int maxMacroRecursionDepth) { | |||
| } | |||
|
|
|||
| public Builder withReadOnlyResolver(boolean readOnlyResolver) { | |||
There was a problem hiding this comment.
I wanted to keep the existing behavior consistent so kept this method in for the builder.
|
instead of making it part of the config, how about allowing it to be set on the Jinjava instance like it is for |
|
The ELResolver used right now is determined by the config (through the |
|
I realized I forgot to add the Builder method to the config for specifying your own ELResolver. |
|
I think it should be possible to provide your own chain of resolvers. The readOnlyResolver seems a little too inflexible. Maybe you could just pass your |
|
The config accepts any |
Alternative to #431
This will allow us to connect our custom ELResolver.