org.hibernate.search.util.configuration.impl.MaskedProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-engine Show documentation
Show all versions of hibernate-search-engine Show documentation
Core of the Object/Lucene mapper, query engine and index management
/*
* 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.util.configuration.impl;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.Serializable;
import java.util.Collection;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.TreeSet;
import org.hibernate.search.util.logging.impl.Log;
import org.hibernate.search.util.logging.impl.LoggerFactory;
/**
* A wrapper to {@link Properties}, to restrict the availability of values to only those which have a key
* beginning with a given masking string.
*
* Supported methods to enumerate the list of properties are:
*
* - propertyNames()
* - keySet()
* - keys()
*
* Other methods including methods returning Entries and values are not supported
*
* @author Sanne Grinovero
* @author Emmanuel Bernard
*/
public class MaskedProperty extends Properties implements Serializable {
private static final long serialVersionUID = -593307257383085113L;
private static final Log log = LoggerFactory.make();
private final Properties masked;
private final Properties fallBack;
private final String radix;
private transient Set
© 2015 - 2025 Weber Informatics LLC | Privacy Policy