Package org.geotools.xsd.impl
Class PicoMap
- Object
-
- PicoMap
-
- All Implemented Interfaces:
Map,Disposable,MutablePicoContainer,PicoContainer,Startable
public class PicoMap extends Object implements Map, MutablePicoContainer
AMapdecorator which implements theMutablePicoContainerinterface.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PicoVisitor visitor)booleanaddChildContainer(PicoContainer child)voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)voiddispose()SetentrySet()booleanequals(Object o)Objectget(Object key)ComponentAdaptergetComponentAdapter(Object componentKey)ComponentAdaptergetComponentAdapterOfType(Class componentType)CollectiongetComponentAdapters()ListgetComponentAdaptersOfType(Class componentType)ObjectgetComponentInstance(Object componentKey)ObjectgetComponentInstanceOfType(Class componentType)ListgetComponentInstances()ListgetComponentInstancesOfType(Class componentType)PicoContainergetParent()inthashCode()booleanisEmpty()SetkeySet()MutablePicoContainermakeChildContainer()Objectput(Object key, Object value)voidputAll(Map t)ComponentAdapterregisterComponent(ComponentAdapter componentAdapter)ComponentAdapterregisterComponentImplementation(Class componentImplementation)ComponentAdapterregisterComponentImplementation(Object componentKey, Class componentImplementation)ComponentAdapterregisterComponentImplementation(Object componentKey, Class componentImplementation, Parameter[] parameters)ComponentAdapterregisterComponentInstance(Object componentInstance)ComponentAdapterregisterComponentInstance(Object componentKey, Object componentInstance)Objectremove(Object key)booleanremoveChildContainer(PicoContainer child)intsize()voidstart()voidstop()ComponentAdapterunregisterComponent(Object componentKey)ComponentAdapterunregisterComponentByInstance(Object componentInstance)Collectionvalues()voidverify()-
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
PicoMap
public PicoMap(Map delegate)
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
values
public Collection values()
-
addChildContainer
public boolean addChildContainer(PicoContainer child)
- Specified by:
addChildContainerin interfaceMutablePicoContainer
-
makeChildContainer
public MutablePicoContainer makeChildContainer()
- Specified by:
makeChildContainerin interfaceMutablePicoContainer
-
registerComponent
public ComponentAdapter registerComponent(ComponentAdapter componentAdapter)
- Specified by:
registerComponentin interfaceMutablePicoContainer
-
registerComponentImplementation
public ComponentAdapter registerComponentImplementation(Class componentImplementation)
- Specified by:
registerComponentImplementationin interfaceMutablePicoContainer
-
registerComponentImplementation
public ComponentAdapter registerComponentImplementation(Object componentKey, Class componentImplementation)
- Specified by:
registerComponentImplementationin interfaceMutablePicoContainer
-
registerComponentImplementation
public ComponentAdapter registerComponentImplementation(Object componentKey, Class componentImplementation, Parameter[] parameters)
- Specified by:
registerComponentImplementationin interfaceMutablePicoContainer
-
registerComponentInstance
public ComponentAdapter registerComponentInstance(Object componentInstance)
- Specified by:
registerComponentInstancein interfaceMutablePicoContainer
-
registerComponentInstance
public ComponentAdapter registerComponentInstance(Object componentKey, Object componentInstance)
- Specified by:
registerComponentInstancein interfaceMutablePicoContainer
-
removeChildContainer
public boolean removeChildContainer(PicoContainer child)
- Specified by:
removeChildContainerin interfaceMutablePicoContainer
-
unregisterComponent
public ComponentAdapter unregisterComponent(Object componentKey)
- Specified by:
unregisterComponentin interfaceMutablePicoContainer
-
unregisterComponentByInstance
public ComponentAdapter unregisterComponentByInstance(Object componentInstance)
- Specified by:
unregisterComponentByInstancein interfaceMutablePicoContainer
-
accept
public void accept(PicoVisitor visitor)
- Specified by:
acceptin interfacePicoContainer
-
getComponentAdapter
public ComponentAdapter getComponentAdapter(Object componentKey)
- Specified by:
getComponentAdapterin interfacePicoContainer
-
getComponentAdapterOfType
public ComponentAdapter getComponentAdapterOfType(Class componentType)
- Specified by:
getComponentAdapterOfTypein interfacePicoContainer
-
getComponentAdapters
public Collection getComponentAdapters()
- Specified by:
getComponentAdaptersin interfacePicoContainer
-
getComponentAdaptersOfType
public List getComponentAdaptersOfType(Class componentType)
- Specified by:
getComponentAdaptersOfTypein interfacePicoContainer
-
getComponentInstance
public Object getComponentInstance(Object componentKey)
- Specified by:
getComponentInstancein interfacePicoContainer
-
getComponentInstanceOfType
public Object getComponentInstanceOfType(Class componentType)
- Specified by:
getComponentInstanceOfTypein interfacePicoContainer
-
getComponentInstances
public List getComponentInstances()
- Specified by:
getComponentInstancesin interfacePicoContainer
-
getComponentInstancesOfType
public List getComponentInstancesOfType(Class componentType)
- Specified by:
getComponentInstancesOfTypein interfacePicoContainer
-
getParent
public PicoContainer getParent()
- Specified by:
getParentin interfacePicoContainer
-
verify
public void verify() throws PicoVerificationException- Specified by:
verifyin interfacePicoContainer- Throws:
PicoVerificationException
-
start
public void start()
- Specified by:
startin interfaceStartable
-
stop
public void stop()
- Specified by:
stopin interfaceStartable
-
dispose
public void dispose()
- Specified by:
disposein interfaceDisposable
-
-