org.hibernate.search.backend.elasticsearch.impl.ConfigurationPropertiesProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-backend-elasticsearch Show documentation
Show all versions of hibernate-search-backend-elasticsearch Show documentation
Hibernate Search backend which has indexing operations forwarded to Elasticsearch
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.search.backend.elasticsearch.impl;
import java.util.Properties;
import org.hibernate.search.engine.service.spi.Service;
import org.hibernate.search.engine.service.spi.Startable;
import org.hibernate.search.spi.BuildContext;
/**
* Work-around for getting *all* properties in the index manager.
*
* @author Gunnar Morling
*/
// TODO is there a better way?
public class ConfigurationPropertiesProvider implements Service, Startable {
private Properties properties;
@Override
public void start(Properties properties, BuildContext context) {
this.properties = properties;
}
public Properties getProperties() {
return properties;
}
}