[
https://issues.apache.org/jira/browse/SOLR-7915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14725215#comment-14725215
]
Noble Paul commented on SOLR-7915:
----------------------------------
ideally the design could be as follows
VRW can implement ResourceLoaderAware . It should have the appropriate
{{ResourceLoader}} depending on whether it had {{runtimeLib=true}} specified or
not it would get the right ResourceLoader
use the resourceLoader on core.createInstance() to instantiate your tool
> Provide pluggable Velocity context tool facility
> ------------------------------------------------
>
> Key: SOLR-7915
> URL: https://issues.apache.org/jira/browse/SOLR-7915
> Project: Solr
> Issue Type: Improvement
> Components: contrib - Velocity
> Affects Versions: 5.3
> Reporter: Erik Hatcher
> Assignee: Erik Hatcher
> Fix For: 5.4
>
> Attachments: SOLR-7915.patch
>
>
> Currently the "tools" placed in the VelocityResponseWriter's context are
> hard-coded. It can be very handy to be able to plug in 3rd party or custom
> tools (just any ol' Java object a "tool" can be).
> Here's a list of the currently hard-coded tools:
> https://github.com/apache/lucene-solr/blob/trunk/solr/contrib/velocity/src/java/org/apache/solr/response/VelocityResponseWriter.java#L189-L199
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]