Package org.alfresco.solr.config
Class ConfigUtil
java.lang.Object
org.alfresco.solr.config.ConfigUtil
Helps with configuring and setup of Alfresco and Solr.
- Author:
- Gethin James
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringconvertPropertyNameToEnvironmentParam(String propertyName) protected static StringconvertPropertyNameToJNDIPath(String propertyName) Takes a property name and splits it via / instead of .static StringlocateProperty(String propertyName, String defaultValue) Finds the property based on looking up the value in one of three places (in order of preference): JNDI: via java:comp/env/{propertyName/converted/to/slash} A Java system property or a Java system property prefixed with solr. OS environment variable
-
Field Details
-
log
protected static final org.slf4j.Logger log
-
-
Constructor Details
-
ConfigUtil
public ConfigUtil()
-
-
Method Details
-
locateProperty
Finds the property based on looking up the value in one of three places (in order of preference):- JNDI: via java:comp/env/{propertyName/converted/to/slash}
- A Java system property or a Java system property prefixed with solr.
- OS environment variable
- Returns:
- A property
-
convertPropertyNameToJNDIPath
Takes a property name and splits it via / instead of .- Parameters:
propertyName-- Returns:
- the property name as a jndi path
-
convertPropertyNameToEnvironmentParam
-