Tabnine Logo
ExpressionContainerConfig.createExpressionContext
Code IndexAdd Tabnine 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)

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

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Reference (javax.naming)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JTable (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Vim 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