Java Script addAttribute(final ScriptContext context, final String key, final Object value)

Here you can find the source of addAttribute(final ScriptContext context, final String key, final Object value)

Description

add Attribute

License

Apache License

Declaration

public static void addAttribute(final ScriptContext context, final String key, final Object value) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import javax.script.ScriptContext;

public class Main {
    public static void addAttribute(final ScriptContext context, final String key, final Object value) {
        context.setAttribute(key, value, ScriptContext.ENGINE_SCOPE);
    }/*w  w w  .  j  a  v a2 s.  c om*/
}

Related

  1. adjustKey(String key)
  2. cdInShell(IResource resource)
  3. convert(Object from)
  4. dbObjectFromMap(Map from)