org.geotools.xml.impl
Class PicoMap

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

public class PicoMap
extends Object
implements Map, MutablePicoContainer

A Map dectorator which implements the MutablePicoContainer interface.

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

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface Map
Map.Entry<K,V>
 
Constructor Summary
PicoMap(Map delegate)
           
 
Method Summary
 void accept(PicoVisitor visitor)
           
 boolean addChildContainer(PicoContainer child)
           
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 void dispose()
           
 Set entrySet()
           
 boolean equals(Object o)
           
 Object get(Object key)
           
 ComponentAdapter getComponentAdapter(Object componentKey)
           
 ComponentAdapter getComponentAdapterOfType(Class componentType)
           
 Collection getComponentAdapters()
           
 List getComponentAdaptersOfType(Class componentType)
           
 Object getComponentInstance(Object componentKey)
           
 Object getComponentInstanceOfType(Class componentType)
           
 List getComponentInstances()
           
 List getComponentInstancesOfType(Class componentType)
           
 PicoContainer getParent()
           
 int hashCode()
           
 boolean isEmpty()
           
 Set keySet()
           
 MutablePicoContainer makeChildContainer()
           
 Object put(Object key, Object value)
           
 void putAll(Map t)
           
 ComponentAdapter registerComponent(ComponentAdapter componentAdapter)
           
 ComponentAdapter registerComponentImplementation(Class componentImplementation)
           
 ComponentAdapter registerComponentImplementation(Object componentKey, Class componentImplementation)
           
 ComponentAdapter registerComponentImplementation(Object componentKey, Class componentImplementation, Parameter[] parameters)
           
 ComponentAdapter registerComponentInstance(Object componentInstance)
           
 ComponentAdapter registerComponentInstance(Object componentKey, Object componentInstance)
           
 Object remove(Object key)
           
 boolean removeChildContainer(PicoContainer child)
           
 int size()
           
 void start()
           
 void stop()
           
 ComponentAdapter unregisterComponent(Object componentKey)
           
 ComponentAdapter unregisterComponentByInstance(Object componentInstance)
           
 Collection values()
           
 void verify()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PicoMap

public PicoMap(Map delegate)
Method Detail

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


Copyright © 1996-2009 Geotools. All Rights Reserved.