[ 
https://issues.apache.org/jira/browse/SOLR-10173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15874698#comment-15874698
 ] 

Christine Poerschke commented on SOLR-10173:
--------------------------------------------

This will allow derived classes such as
{code}
package com.mycompany.myteam.solr.handler.component;

public class HttpShardHandlerFactory extends 
org.apache.solr.handler.component.HttpShardHandlerFactory {
  @Override
  protected ReplicaListTransformer getReplicaListTransformer(final 
SolrQueryRequest req) {
    if (...) {
      ... custom logic possibly using r(andomisation) ...
    } else {
      return super.getReplicaListTransformer(req);
    }
  }
}
{code}

Looks good to me.

> Enable extension/customization of HttpShardHandler by increasing visibility
> ---------------------------------------------------------------------------
>
>                 Key: SOLR-10173
>                 URL: https://issues.apache.org/jira/browse/SOLR-10173
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Ramsey Haddad
>            Priority: Minor
>         Attachments: solr-10173.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Increase visibility of 2 elements of HttpShardHandlerFactory from "private" 
> to "protected" to facilitate extension of the class. Make 
> ReplicaListTransformer "public" to enable implementation of the interface in 
> custom classes.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to