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
AMap
decorator which implements theMutablePicoContainer
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
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:
containsKey
in interfaceMap
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
values
public Collection values()
-
addChildContainer
public boolean addChildContainer(PicoContainer child)
- Specified by:
addChildContainer
in interfaceMutablePicoContainer
-
makeChildContainer
public MutablePicoContainer makeChildContainer()
- Specified by:
makeChildContainer
in interfaceMutablePicoContainer
-
registerComponent
public ComponentAdapter registerComponent(ComponentAdapter componentAdapter)
- Specified by:
registerComponent
in interfaceMutablePicoContainer
-
registerComponentImplementation
public ComponentAdapter registerComponentImplementation(Class componentImplementation)
- Specified by:
registerComponentImplementation
in interfaceMutablePicoContainer
-
registerComponentImplementation
public ComponentAdapter registerComponentImplementation(Object componentKey, Class componentImplementation)
- Specified by:
registerComponentImplementation
in interfaceMutablePicoContainer
-
registerComponentImplementation
public ComponentAdapter registerComponentImplementation(Object componentKey, Class componentImplementation, Parameter[] parameters)
- Specified by:
registerComponentImplementation
in interfaceMutablePicoContainer
-
registerComponentInstance
public ComponentAdapter registerComponentInstance(Object componentInstance)
- Specified by:
registerComponentInstance
in interfaceMutablePicoContainer
-
registerComponentInstance
public ComponentAdapter registerComponentInstance(Object componentKey, Object componentInstance)
- Specified by:
registerComponentInstance
in interfaceMutablePicoContainer
-
removeChildContainer
public boolean removeChildContainer(PicoContainer child)
- Specified by:
removeChildContainer
in interfaceMutablePicoContainer
-
unregisterComponent
public ComponentAdapter unregisterComponent(Object componentKey)
- Specified by:
unregisterComponent
in interfaceMutablePicoContainer
-
unregisterComponentByInstance
public ComponentAdapter unregisterComponentByInstance(Object componentInstance)
- Specified by:
unregisterComponentByInstance
in interfaceMutablePicoContainer
-
accept
public void accept(PicoVisitor visitor)
- Specified by:
accept
in interfacePicoContainer
-
getComponentAdapter
public ComponentAdapter getComponentAdapter(Object componentKey)
- Specified by:
getComponentAdapter
in interfacePicoContainer
-
getComponentAdapterOfType
public ComponentAdapter getComponentAdapterOfType(Class componentType)
- Specified by:
getComponentAdapterOfType
in interfacePicoContainer
-
getComponentAdapters
public Collection getComponentAdapters()
- Specified by:
getComponentAdapters
in interfacePicoContainer
-
getComponentAdaptersOfType
public List getComponentAdaptersOfType(Class componentType)
- Specified by:
getComponentAdaptersOfType
in interfacePicoContainer
-
getComponentInstance
public Object getComponentInstance(Object componentKey)
- Specified by:
getComponentInstance
in interfacePicoContainer
-
getComponentInstanceOfType
public Object getComponentInstanceOfType(Class componentType)
- Specified by:
getComponentInstanceOfType
in interfacePicoContainer
-
getComponentInstances
public List getComponentInstances()
- Specified by:
getComponentInstances
in interfacePicoContainer
-
getComponentInstancesOfType
public List getComponentInstancesOfType(Class componentType)
- Specified by:
getComponentInstancesOfType
in interfacePicoContainer
-
getParent
public PicoContainer getParent()
- Specified by:
getParent
in interfacePicoContainer
-
verify
public void verify() throws PicoVerificationException
- Specified by:
verify
in interfacePicoContainer
- Throws:
PicoVerificationException
-
start
public void start()
- Specified by:
start
in interfaceStartable
-
stop
public void stop()
- Specified by:
stop
in interfaceStartable
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceDisposable
-
-