org.geotools.xml.impl
Class PicoMap

java.lang.Object
  extended by org.geotools.xml.impl.PicoMap
All Implemented Interfaces:
java.util.Map, org.picocontainer.Disposable, org.picocontainer.MutablePicoContainer, org.picocontainer.PicoContainer, org.picocontainer.Startable

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

Constructor Detail

PicoMap

public PicoMap(java.util.Map delegate)
Method Detail

clear

public void clear()
Specified by:
clear in interface java.util.Map

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map

containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface java.util.Map

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Map
Overrides:
equals in class java.lang.Object

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Map
Overrides:
hashCode in class java.lang.Object

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map

keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map

putAll

public void putAll(java.util.Map t)
Specified by:
putAll in interface java.util.Map

remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map

size

public int size()
Specified by:
size in interface java.util.Map

values

public java.util.Collection values()
Specified by:
values in interface java.util.Map

addChildContainer

public boolean addChildContainer(org.picocontainer.PicoContainer child)
Specified by:
addChildContainer in interface org.picocontainer.MutablePicoContainer

makeChildContainer

public org.picocontainer.MutablePicoContainer makeChildContainer()
Specified by:
makeChildContainer in interface org.picocontainer.MutablePicoContainer

registerComponent

public org.picocontainer.ComponentAdapter registerComponent(org.picocontainer.ComponentAdapter componentAdapter)
Specified by:
registerComponent in interface org.picocontainer.MutablePicoContainer

registerComponentImplementation

public org.picocontainer.ComponentAdapter registerComponentImplementation(java.lang.Class componentImplementation)
Specified by:
registerComponentImplementation in interface org.picocontainer.MutablePicoContainer

registerComponentImplementation

public org.picocontainer.ComponentAdapter registerComponentImplementation(java.lang.Object componentKey,
                                                                          java.lang.Class componentImplementation)
Specified by:
registerComponentImplementation in interface org.picocontainer.MutablePicoContainer

registerComponentImplementation

public org.picocontainer.ComponentAdapter registerComponentImplementation(java.lang.Object componentKey,
                                                                          java.lang.Class componentImplementation,
                                                                          org.picocontainer.Parameter[] parameters)
Specified by:
registerComponentImplementation in interface org.picocontainer.MutablePicoContainer

registerComponentInstance

public org.picocontainer.ComponentAdapter registerComponentInstance(java.lang.Object componentInstance)
Specified by:
registerComponentInstance in interface org.picocontainer.MutablePicoContainer

registerComponentInstance

public org.picocontainer.ComponentAdapter registerComponentInstance(java.lang.Object componentKey,
                                                                    java.lang.Object componentInstance)
Specified by:
registerComponentInstance in interface org.picocontainer.MutablePicoContainer

removeChildContainer

public boolean removeChildContainer(org.picocontainer.PicoContainer child)
Specified by:
removeChildContainer in interface org.picocontainer.MutablePicoContainer

unregisterComponent

public org.picocontainer.ComponentAdapter unregisterComponent(java.lang.Object componentKey)
Specified by:
unregisterComponent in interface org.picocontainer.MutablePicoContainer

unregisterComponentByInstance

public org.picocontainer.ComponentAdapter unregisterComponentByInstance(java.lang.Object componentInstance)
Specified by:
unregisterComponentByInstance in interface org.picocontainer.MutablePicoContainer

accept

public void accept(org.picocontainer.PicoVisitor visitor)
Specified by:
accept in interface org.picocontainer.PicoContainer

getComponentAdapter

public org.picocontainer.ComponentAdapter getComponentAdapter(java.lang.Object componentKey)
Specified by:
getComponentAdapter in interface org.picocontainer.PicoContainer

getComponentAdapterOfType

public org.picocontainer.ComponentAdapter getComponentAdapterOfType(java.lang.Class componentType)
Specified by:
getComponentAdapterOfType in interface org.picocontainer.PicoContainer

getComponentAdapters

public java.util.Collection getComponentAdapters()
Specified by:
getComponentAdapters in interface org.picocontainer.PicoContainer

getComponentAdaptersOfType

public java.util.List getComponentAdaptersOfType(java.lang.Class componentType)
Specified by:
getComponentAdaptersOfType in interface org.picocontainer.PicoContainer

getComponentInstance

public java.lang.Object getComponentInstance(java.lang.Object componentKey)
Specified by:
getComponentInstance in interface org.picocontainer.PicoContainer

getComponentInstanceOfType

public java.lang.Object getComponentInstanceOfType(java.lang.Class componentType)
Specified by:
getComponentInstanceOfType in interface org.picocontainer.PicoContainer

getComponentInstances

public java.util.List getComponentInstances()
Specified by:
getComponentInstances in interface org.picocontainer.PicoContainer

getComponentInstancesOfType

public java.util.List getComponentInstancesOfType(java.lang.Class componentType)
Specified by:
getComponentInstancesOfType in interface org.picocontainer.PicoContainer

getParent

public org.picocontainer.PicoContainer getParent()
Specified by:
getParent in interface org.picocontainer.PicoContainer

verify

public void verify()
            throws org.picocontainer.PicoVerificationException
Specified by:
verify in interface org.picocontainer.PicoContainer
Throws:
org.picocontainer.PicoVerificationException

start

public void start()
Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()
Specified by:
stop in interface org.picocontainer.Startable

dispose

public void dispose()
Specified by:
dispose in interface org.picocontainer.Disposable


Copyright © 1996-2010 Geotools. All Rights Reserved.