org.mule.module.scripting.component
Class RegistryLookupBindings

java.lang.Object
  extended by org.mule.module.scripting.component.RegistryLookupBindings
All Implemented Interfaces:
Map<String,Object>, Bindings

public class RegistryLookupBindings
extends Object
implements Bindings

This class will attempt to lookup up objects inside the registry in case they don't exist in the delegate binding. This makes it possible to reference named objects inside of Mule (such as a Spring bean) from a script with no extra work.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
RegistryLookupBindings(Registry registry, Bindings delegate)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<String,Object>> entrySet()
           
 boolean equals(Object o)
           
 Object get(Object key)
           
 int hashCode()
           
 boolean isEmpty()
           
 Set<String> keySet()
           
 Object put(String name, Object value)
           
 void putAll(Map<? extends String,? extends Object> toMerge)
           
 Object remove(Object key)
           
 int size()
           
 Collection<Object> values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryLookupBindings

public RegistryLookupBindings(Registry registry,
                              Bindings delegate)
Method Detail

put

public Object put(String name,
                  Object value)
Specified by:
put in interface Map<String,Object>
Specified by:
put in interface Bindings

putAll

public void putAll(Map<? extends String,? extends Object> toMerge)
Specified by:
putAll in interface Map<String,Object>
Specified by:
putAll in interface Bindings

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,Object>
Specified by:
containsKey in interface Bindings

get

public Object get(Object key)
Specified by:
get in interface Map<String,Object>
Specified by:
get in interface Bindings

remove

public Object remove(Object key)
Specified by:
remove in interface Map<String,Object>
Specified by:
remove in interface Bindings

size

public int size()
Specified by:
size in interface Map<String,Object>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,Object>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<String,Object>

clear

public void clear()
Specified by:
clear in interface Map<String,Object>

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,Object>

values

public Collection<Object> values()
Specified by:
values in interface Map<String,Object>

entrySet

public Set<Map.Entry<String,Object>> entrySet()
Specified by:
entrySet in interface Map<String,Object>

equals

public boolean equals(Object o)
Specified by:
equals in interface Map<String,Object>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<String,Object>
Overrides:
hashCode in class Object


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.