jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject svn commit: r1449692 - in /jackrabbit/oak/trunk/oak-solr-remote/src/main/java/org/apache/jackrabbit/oak/plugins/index/solr/http: RemoteSolrConfigurationProvider.java RemoteSolrServerProvider.java
Date Mon, 25 Feb 2013 13:03:48 GMT
Author: tommaso
Date: Mon Feb 25 13:03:48 2013
New Revision: 1449692

URL: http://svn.apache.org/r1449692
Log:
OAK-651 - added constructors to instantiate configuration and server providers

Modified:
    jackrabbit/oak/trunk/oak-solr-remote/src/main/java/org/apache/jackrabbit/oak/plugins/index/solr/http/RemoteSolrConfigurationProvider.java
    jackrabbit/oak/trunk/oak-solr-remote/src/main/java/org/apache/jackrabbit/oak/plugins/index/solr/http/RemoteSolrServerProvider.java

Modified: jackrabbit/oak/trunk/oak-solr-remote/src/main/java/org/apache/jackrabbit/oak/plugins/index/solr/http/RemoteSolrConfigurationProvider.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-solr-remote/src/main/java/org/apache/jackrabbit/oak/plugins/index/solr/http/RemoteSolrConfigurationProvider.java?rev=1449692&r1=1449691&r2=1449692&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-solr-remote/src/main/java/org/apache/jackrabbit/oak/plugins/index/solr/http/RemoteSolrConfigurationProvider.java
(original)
+++ jackrabbit/oak/trunk/oak-solr-remote/src/main/java/org/apache/jackrabbit/oak/plugins/index/solr/http/RemoteSolrConfigurationProvider.java
Mon Feb 25 13:03:48 2013
@@ -53,8 +53,19 @@ public class RemoteSolrConfigurationProv
     private String pathParentFieldName;
     private String pathDescendantsFieldName;
     private String pathExactFieldName;
+
     private OakSolrConfiguration oakSolrConfiguration;
 
+    public RemoteSolrConfigurationProvider() {
+    }
+
+    public RemoteSolrConfigurationProvider(String pathChildrenFieldName, String pathParentFieldName,
+                                           String pathDescendantsFieldName, String pathExactFieldName)
{
+        this.pathChildrenFieldName = pathChildrenFieldName;
+        this.pathParentFieldName = pathParentFieldName;
+        this.pathDescendantsFieldName = pathDescendantsFieldName;
+        this.pathExactFieldName = pathExactFieldName;
+    }
 
     protected void activate(ComponentContext componentContext) throws Exception {
         pathChildrenFieldName = String.valueOf(componentContext.getProperties().get(PATH_CHILDREN_FIELD));

Modified: jackrabbit/oak/trunk/oak-solr-remote/src/main/java/org/apache/jackrabbit/oak/plugins/index/solr/http/RemoteSolrServerProvider.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-solr-remote/src/main/java/org/apache/jackrabbit/oak/plugins/index/solr/http/RemoteSolrServerProvider.java?rev=1449692&r1=1449691&r2=1449692&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-solr-remote/src/main/java/org/apache/jackrabbit/oak/plugins/index/solr/http/RemoteSolrServerProvider.java
(original)
+++ jackrabbit/oak/trunk/oak-solr-remote/src/main/java/org/apache/jackrabbit/oak/plugins/index/solr/http/RemoteSolrServerProvider.java
Mon Feb 25 13:03:48 2013
@@ -54,6 +54,14 @@ public class RemoteSolrServerProvider im
     private String solrHttpUrl;
     private String solrZkHost;
 
+    public RemoteSolrServerProvider() {
+    }
+
+    public RemoteSolrServerProvider(String solrHttpUrl, String solrZkHost) {
+        this.solrHttpUrl = solrHttpUrl;
+        this.solrZkHost = solrZkHost;
+    }
+
     @Activate
     protected void activate(ComponentContext componentContext) throws Exception {
         solrHttpUrl = String.valueOf(componentContext.getProperties().get(SOLR_HTTP_URL));



Mime
View raw message