Tabnine Logo
StrLookup.systemPropertiesLookup
Code IndexAdd Tabnine to your IDE (free)

How to use
systemPropertiesLookup
method
in
org.apache.commons.lang.text.StrLookup

Best Java code snippets using org.apache.commons.lang.text.StrLookup.systemPropertiesLookup (Showing top 8 results out of 315)

origin: commons-lang/commons-lang

/**
 * Replaces all the occurrences of variables in the given source object with
 * their matching values from the system properties.
 *
 * @param source  the source text containing the variables to substitute, null returns null
 * @return the result of the replace operation
 */
public static String replaceSystemProperties(Object source) {
  return new StrSubstitutor(StrLookup.systemPropertiesLookup()).replace(source);
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Replaces all the occurrences of variables in the given source object with
 * their matching values from the system properties.
 *
 * @param source  the source text containing the variables to substitute, null returns null
 * @return the result of the replace operation
 */
public static String replaceSystemProperties(Object source) {
  return new StrSubstitutor(StrLookup.systemPropertiesLookup()).replace(source);
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Replaces all the occurrences of variables in the given source object with
 * their matching values from the system properties.
 *
 * @param source  the source text containing the variables to substitute, null returns null
 * @return the result of the replace operation
 */
public static String replaceSystemProperties(Object source) {
  return new StrSubstitutor(StrLookup.systemPropertiesLookup()).replace(source);
}
origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.lang

/**
 * Replaces all the occurrences of variables in the given source object with
 * their matching values from the system properties.
 *
 * @param source  the source text containing the variables to substitute, null returns null
 * @return the result of the replace operation
 */
public static String replaceSystemProperties(Object source) {
  return new StrSubstitutor(StrLookup.systemPropertiesLookup()).replace(source);
}
origin: org.apache.commons/com.springsource.org.apache.commons.lang

/**
 * Replaces all the occurrences of variables in the given source object with
 * their matching values from the system properties.
 *
 * @param source  the source text containing the variables to substitute, null returns null
 * @return the result of the replace operation
 */
public static String replaceSystemProperties(Object source) {
  return new StrSubstitutor(StrLookup.systemPropertiesLookup()).replace(source);
}
origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * Replaces all the occurrences of variables in the given source object with
 * their matching values from the system properties.
 *
 * @param source  the source text containing the variables to substitute, null returns null
 * @return the result of the replace operation
 */
public static String replaceSystemProperties(Object source) {
  return new StrSubstitutor(StrLookup.systemPropertiesLookup()).replace(source);
}
origin: Adobe-Consulting-Services/acs-aem-commons

@Activate
@SuppressWarnings("squid:S1149")
protected final void activate(ComponentContext ctx) {
  Dictionary<?, ?> config = ctx.getProperties();
  color = PropertiesUtil.toString(config.get(PROP_COLOR), "");
  cssOverride = PropertiesUtil.toString(config.get(PROP_CSS_OVERRIDE), "");
  innerHTML = PropertiesUtil.toString(config.get(PROP_INNER_HTML), "");
  innerHTML = new StrSubstitutor(StrLookup.systemPropertiesLookup()).replace(innerHTML);
  // Only write CSS variable if cssOverride or color is provided
  if (StringUtils.isNotBlank(cssOverride)) {
    css = cssOverride;
  } else if (StringUtils.isNotBlank(color)) {
    css = createCss(color);
  }
  titlePrefix = xss.encodeForJSString(
      PropertiesUtil.toString(config.get(PROP_TITLE_PREFIX), "").toString());
  if (StringUtils.isNotBlank(css) || StringUtils.isNotBlank(titlePrefix)) {
    Dictionary<String, String> filterProps = new Hashtable<String, String>();
    filterProps.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_FILTER_PATTERN, "/");
    filterProps.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_SELECT, "(" + HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_NAME + "=*)");
    filterRegistration = ctx.getBundleContext().registerService(Filter.class.getName(), this, filterProps);
  }
  excludedWCMModes = PropertiesUtil.toStringArray(config.get(PROP_EXCLUDED_WCMMODES),DEFAULT_EXCLUDED_WCMMODES);
}
origin: com.adobe.acs/acs-aem-commons-bundle

@Activate
protected final void activate(ComponentContext ctx) {
  Dictionary<?, ?> config = ctx.getProperties();
  color = PropertiesUtil.toString(config.get(PROP_COLOR), "");
  cssOverride = PropertiesUtil.toString(config.get(PROP_CSS_OVERRIDE), "");
  innerHTML = PropertiesUtil.toString(config.get(PROP_INNER_HTML), "");
  innerHTML = new StrSubstitutor(StrLookup.systemPropertiesLookup()).replace(innerHTML);
  // Only write CSS variable if cssOverride or color is provided
  if (StringUtils.isNotBlank(cssOverride)) {
    css = cssOverride;
  } else if (StringUtils.isNotBlank(color)) {
    css = createCSS(color);
  }
  titlePrefix = xss.encodeForJSString(
      PropertiesUtil.toString(config.get(PROP_TITLE_PREFIX), "").toString());
  if (StringUtils.isNotBlank(css) || StringUtils.isNotBlank(titlePrefix)) {
    Dictionary<String, String> filterProps = new Hashtable<String, String>();
    filterProps.put("pattern", ".*");
    filterRegistration = ctx.getBundleContext().registerService(Filter.class.getName(), this, filterProps);
  }
  excludedWCMModes = PropertiesUtil.toStringArray(config.get(PROP_EXCLUDED_WCMMODES),DEFAULT_EXCLUDED_WCMMODES);
}
org.apache.commons.lang.textStrLookupsystemPropertiesLookup

Javadoc

Returns a lookup which uses System#getProperties()to lookup the key to value.

If a security manager blocked access to system properties, then null will be returned from every lookup.

If a null key is used, this lookup will throw a NullPointerException.

Popular methods of StrLookup

  • lookup
    Looks up a String key to a String value. The internal implementation may use any mechanism to return
  • mapLookup
    Returns a lookup which looks up values using a map. If the map is null, then null will be returned f
  • noneLookup
    Returns a lookup which always returns null.

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Reference (javax.naming)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now