Class SystemUtil
java.lang.Object
org.apache.tinkerpop.gremlin.util.SystemUtil
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.configuration2.ConfigurationgetSystemPropertiesConfiguration(String prefix, boolean trimPrefix) Generate aConfigurationfrom theSystem.getProperties().
-
Method Details
-
getSystemPropertiesConfiguration
public static org.apache.commons.configuration2.Configuration getSystemPropertiesConfiguration(String prefix, boolean trimPrefix) Generate aConfigurationfrom theSystem.getProperties(). Only those properties with specified prefix key are aggregated. If the prefix and a . should be removed, then trim prefix.- Parameters:
prefix- the prefix of the keys to include in the configurationtrimPrefix- whether to trim the prefix + . from the key- Returns:
- a configuration generated from the System properties
-