Class JavaColonNamespaceBindings<T>

  • Type Parameters:
    T - the binding object
    All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​T>

    public class JavaColonNamespaceBindings<T>
    extends java.util.HashMap<java.lang.String,​T>
    Manages the bindings for a #JavaColonNamingHelper. This object is not thread-safe: accesses to the HashMap.put(K, V) and HashMap.remove(java.lang.Object) methods must be protected by a write lock, and access to all other methods must be protected by a read lock.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  JavaColonNamespaceBindings.ClassNameProvider<T>
      Provides the type names for the bindings.
      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind​(java.lang.String name, T binding)
      Adds a binding.
      boolean hasObjectWithPrefix​(java.lang.String contextName)  
      java.util.Collection<? extends javax.naming.NameClassPair> listInstances​(java.lang.String contextName)  
      T lookup​(java.lang.String name)
      Looks up a binding.
      void unbind​(java.lang.String name)
      Removes a binding.
      • Methods inherited from class java.util.HashMap

        clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        equals, hashCode