Package org.geotools.xsd.impl
Class PicoMap
Object
PicoMap
- All Implemented Interfaces:
Map
,Disposable
,MutablePicoContainer
,PicoContainer
,Startable
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
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(PicoVisitor visitor) boolean
addChildContainer
(PicoContainer child) void
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) void
dispose()
entrySet()
boolean
ComponentAdapter
getComponentAdapter
(Object componentKey) ComponentAdapter
getComponentAdapterOfType
(Class componentType) getComponentAdaptersOfType
(Class componentType) getComponentInstance
(Object componentKey) getComponentInstanceOfType
(Class componentType) getComponentInstancesOfType
(Class componentType) PicoContainer
int
hashCode()
boolean
isEmpty()
keySet()
MutablePicoContainer
void
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) boolean
removeChildContainer
(PicoContainer child) int
size()
void
start()
void
stop()
ComponentAdapter
unregisterComponent
(Object componentKey) ComponentAdapter
unregisterComponentByInstance
(Object componentInstance) 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 Details
-
PicoMap
-
-
Method Details
-
clear
public void clear() -
containsKey
- Specified by:
containsKey
in interfaceMap
-
containsValue
- Specified by:
containsValue
in interfaceMap
-
entrySet
-
equals
-
get
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
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
- 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
- Specified by:
registerComponentInstance
in interfaceMutablePicoContainer
-
registerComponentInstance
- Specified by:
registerComponentInstance
in interfaceMutablePicoContainer
-
removeChildContainer
public boolean removeChildContainer(PicoContainer child) - Specified by:
removeChildContainer
in interfaceMutablePicoContainer
-
unregisterComponent
- Specified by:
unregisterComponent
in interfaceMutablePicoContainer
-
unregisterComponentByInstance
- Specified by:
unregisterComponentByInstance
in interfaceMutablePicoContainer
-
accept
public void accept(PicoVisitor visitor) - Specified by:
accept
in interfacePicoContainer
-
getComponentAdapter
- Specified by:
getComponentAdapter
in interfacePicoContainer
-
getComponentAdapterOfType
- Specified by:
getComponentAdapterOfType
in interfacePicoContainer
-
getComponentAdapters
- Specified by:
getComponentAdapters
in interfacePicoContainer
-
getComponentAdaptersOfType
- Specified by:
getComponentAdaptersOfType
in interfacePicoContainer
-
getComponentInstance
- Specified by:
getComponentInstance
in interfacePicoContainer
-
getComponentInstanceOfType
- Specified by:
getComponentInstanceOfType
in interfacePicoContainer
-
getComponentInstances
- Specified by:
getComponentInstances
in interfacePicoContainer
-
getComponentInstancesOfType
- 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
-