Class PicoMap

Object
PicoMap
All Implemented Interfaces:
Map, Disposable, MutablePicoContainer, PicoContainer, Startable

public class PicoMap extends Object implements Map, MutablePicoContainer
A Map decorator which implements the MutablePicoContainer interface.

This class is used internally to help transition from pico container to a map based system for registering bindings.

Author:
Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
  • Constructor Details

    • PicoMap

      public PicoMap(Map delegate)
  • Method Details

    • clear

      public void clear()
      Specified by:
      clear in interface Map
    • containsKey

      public boolean containsKey(Object key)
      Specified by:
      containsKey in interface Map
    • containsValue

      public boolean containsValue(Object value)
      Specified by:
      containsValue in interface Map
    • entrySet

      public Set entrySet()
      Specified by:
      entrySet in interface Map
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Map
      Overrides:
      equals in class Object
    • get

      public Object get(Object key)
      Specified by:
      get in interface Map
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map
      Overrides:
      hashCode in class Object
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Map
    • keySet

      public Set keySet()
      Specified by:
      keySet in interface Map
    • put

      public Object put(Object key, Object value)
      Specified by:
      put in interface Map
    • putAll

      public void putAll(Map t)
      Specified by:
      putAll in interface Map
    • remove

      public Object remove(Object key)
      Specified by:
      remove in interface Map
    • size

      public int size()
      Specified by:
      size in interface Map
    • values

      public Collection values()
      Specified by:
      values in interface Map
    • addChildContainer

      public boolean addChildContainer(PicoContainer child)
      Specified by:
      addChildContainer in interface MutablePicoContainer
    • makeChildContainer

      public MutablePicoContainer makeChildContainer()
      Specified by:
      makeChildContainer in interface MutablePicoContainer
    • registerComponent

      public ComponentAdapter registerComponent(ComponentAdapter componentAdapter)
      Specified by:
      registerComponent in interface MutablePicoContainer
    • registerComponentImplementation

      public ComponentAdapter registerComponentImplementation(Class componentImplementation)
      Specified by:
      registerComponentImplementation in interface MutablePicoContainer
    • registerComponentImplementation

      public ComponentAdapter registerComponentImplementation(Object componentKey, Class componentImplementation)
      Specified by:
      registerComponentImplementation in interface MutablePicoContainer
    • registerComponentImplementation

      public ComponentAdapter registerComponentImplementation(Object componentKey, Class componentImplementation, Parameter[] parameters)
      Specified by:
      registerComponentImplementation in interface MutablePicoContainer
    • registerComponentInstance

      public ComponentAdapter registerComponentInstance(Object componentInstance)
      Specified by:
      registerComponentInstance in interface MutablePicoContainer
    • registerComponentInstance

      public ComponentAdapter registerComponentInstance(Object componentKey, Object componentInstance)
      Specified by:
      registerComponentInstance in interface MutablePicoContainer
    • removeChildContainer

      public boolean removeChildContainer(PicoContainer child)
      Specified by:
      removeChildContainer in interface MutablePicoContainer
    • unregisterComponent

      public ComponentAdapter unregisterComponent(Object componentKey)
      Specified by:
      unregisterComponent in interface MutablePicoContainer
    • unregisterComponentByInstance

      public ComponentAdapter unregisterComponentByInstance(Object componentInstance)
      Specified by:
      unregisterComponentByInstance in interface MutablePicoContainer
    • accept

      public void accept(PicoVisitor visitor)
      Specified by:
      accept in interface PicoContainer
    • getComponentAdapter

      public ComponentAdapter getComponentAdapter(Object componentKey)
      Specified by:
      getComponentAdapter in interface PicoContainer
    • getComponentAdapterOfType

      public ComponentAdapter getComponentAdapterOfType(Class componentType)
      Specified by:
      getComponentAdapterOfType in interface PicoContainer
    • getComponentAdapters

      public Collection getComponentAdapters()
      Specified by:
      getComponentAdapters in interface PicoContainer
    • getComponentAdaptersOfType

      public List getComponentAdaptersOfType(Class componentType)
      Specified by:
      getComponentAdaptersOfType in interface PicoContainer
    • getComponentInstance

      public Object getComponentInstance(Object componentKey)
      Specified by:
      getComponentInstance in interface PicoContainer
    • getComponentInstanceOfType

      public Object getComponentInstanceOfType(Class componentType)
      Specified by:
      getComponentInstanceOfType in interface PicoContainer
    • getComponentInstances

      public List getComponentInstances()
      Specified by:
      getComponentInstances in interface PicoContainer
    • getComponentInstancesOfType

      public List getComponentInstancesOfType(Class componentType)
      Specified by:
      getComponentInstancesOfType in interface PicoContainer
    • getParent

      public PicoContainer getParent()
      Specified by:
      getParent in interface PicoContainer
    • verify

      public void verify() throws PicoVerificationException
      Specified by:
      verify in interface PicoContainer
      Throws:
      PicoVerificationException
    • start

      public void start()
      Specified by:
      start in interface Startable
    • stop

      public void stop()
      Specified by:
      stop in interface Startable
    • dispose

      public void dispose()
      Specified by:
      dispose in interface Disposable