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
-
-
Constructor Summary
Constructors Constructor Description PicoMap(Map delegate)
-
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()
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMap
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap
-
entrySet
public Set entrySet()
- Specified by:
entrySet
in interfaceMap
-
equals
public boolean equals(Object o)
- Specified by:
equals
in interfaceMap
- Overrides:
equals
in classObject
-
get
public Object get(Object key)
- Specified by:
get
in interfaceMap
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceMap
- Overrides:
hashCode
in classObject
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceMap
-
keySet
public Set keySet()
- Specified by:
keySet
in interfaceMap
-
put
public Object put(Object key, Object value)
- Specified by:
put
in interfaceMap
-
putAll
public void putAll(Map t)
- Specified by:
putAll
in interfaceMap
-
remove
public Object remove(Object key)
- Specified by:
remove
in interfaceMap
-
size
public int size()
- Specified by:
size
in interfaceMap
-
values
public Collection values()
- Specified by:
values
in interfaceMap
-
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
-
-