Codota Logo
ExpressionContainerConfig.createExpressionContext
Code IndexAdd Codota to your IDE (free)

How to use
createExpressionContext
method
in
org.apache.shindig.config.ExpressionContainerConfig

Best Java code snippets using org.apache.shindig.config.ExpressionContainerConfig.createExpressionContext (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: apache/shindig

@Override
public Object getProperty(String container, String property) {
 if (property.startsWith("${")) {
  // An expression!
  try {
   ValueExpression expression = expressions.parse(property, Object.class);
   return expression.getValue(createExpressionContext(container));
  } catch (ELException e) {
   return null;
  }
 }
 return super.getProperty(container, property);
}
origin: org.apache.shindig/shindig-common

@Override
public Object getProperty(String container, String property) {
 if (property.startsWith("${")) {
  // An expression!
  try {
   ValueExpression expression = expressions.parse(property, Object.class);
   return expression.getValue(createExpressionContext(container));
  } catch (ELException e) {
   return null;
  }
 }
 return super.getProperty(container, property);
}
origin: org.wso2.org.apache.shindig/shindig-common

@Override
public Object getProperty(String container, String property) {
 if (property.startsWith("${")) {
  // An expression!
  try {
   ValueExpression expression = expressions.parse(property, Object.class);
   return expression.getValue(createExpressionContext(container));
  } catch (ELException e) {
   return null;
  }
 }
 return super.getProperty(container, property);
}
origin: org.apache.shindig/shindig-common

@Override
@SuppressWarnings("unchecked")
protected void changeContainersInConfig(BasicContainerConfig config,
  Map<String, Map<String, Object>> setContainers, Set<String> removeContainers)
  throws ContainerConfigException {
 ExpressionContainerConfig tmp = (ExpressionContainerConfig) config;
 tmp.rawConfig.putAll(setContainers);
 for (String container : removeContainers) {
  tmp.rawConfig.remove(container);
 }
 tmp.config.clear();
 for (String container : tmp.rawConfig.keySet()) {
  Map<String, Object> merged = mergeParents(container, tmp.rawConfig);
  tmp.rawConfig.put(container, merged);
  Map<String, Object> value =
    (Map<String, Object>) parseAll(merged, tmp.createExpressionContext(container));
  tmp.config.put(container, value);
 }
 for (String container : tmp.config.keySet()) {
  Map<String, Object> value = (Map<String, Object>) evaluateAll(tmp.config.get(container));
  tmp.config.put(container, value);
 }
}
origin: apache/shindig

@Override
@SuppressWarnings("unchecked")
protected void changeContainersInConfig(BasicContainerConfig config,
  Map<String, Map<String, Object>> setContainers, Set<String> removeContainers)
  throws ContainerConfigException {
 ExpressionContainerConfig tmp = (ExpressionContainerConfig) config;
 tmp.rawConfig.putAll(setContainers);
 for (String container : removeContainers) {
  tmp.rawConfig.remove(container);
 }
 tmp.config.clear();
 for (String container : tmp.rawConfig.keySet()) {
  Map<String, Object> merged = mergeParents(container, tmp.rawConfig);
  tmp.rawConfig.put(container, merged);
  Map<String, Object> value =
    (Map<String, Object>) parseAll(merged, tmp.createExpressionContext(container));
  tmp.config.put(container, value);
 }
 for (String container : tmp.config.keySet()) {
  Map<String, Object> value = (Map<String, Object>) evaluateAll(tmp.config.get(container));
  tmp.config.put(container, value);
 }
}
origin: org.wso2.org.apache.shindig/shindig-common

@Override
@SuppressWarnings("unchecked")
protected void changeContainersInConfig(BasicContainerConfig config,
  Map<String, Map<String, Object>> setContainers, Set<String> removeContainers)
  throws ContainerConfigException {
 ExpressionContainerConfig tmp = (ExpressionContainerConfig) config;
 tmp.rawConfig.putAll(setContainers);
 for (String container : removeContainers) {
  tmp.rawConfig.remove(container);
 }
 tmp.config.clear();
 for (String container : tmp.rawConfig.keySet()) {
  Map<String, Object> merged = mergeParents(container, tmp.rawConfig);
  tmp.rawConfig.put(container, merged);
  Map<String, Object> value =
    (Map<String, Object>) parseAll(merged, tmp.createExpressionContext(container));
  tmp.config.put(container, value);
 }
 for (String container : tmp.config.keySet()) {
  Map<String, Object> value = (Map<String, Object>) evaluateAll(tmp.config.get(container));
  tmp.config.put(container, value);
 }
}
org.apache.shindig.configExpressionContainerConfigcreateExpressionContext

Popular methods of ExpressionContainerConfig

  • <init>
  • getContainers
  • getExpressions
  • getList
  • getMap
  • getProperty
  • getString

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now