public class PicoMap extends Object implements Map, MutablePicoContainer
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.
| Modifier and Type | Method and 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() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic PicoMap(Map delegate)
public boolean containsKey(Object key)
containsKey in interface Mappublic boolean containsValue(Object value)
containsValue in interface Mappublic boolean equals(Object o)
public int hashCode()
public Collection values()
public boolean addChildContainer(PicoContainer child)
addChildContainer in interface MutablePicoContainerpublic MutablePicoContainer makeChildContainer()
makeChildContainer in interface MutablePicoContainerpublic ComponentAdapter registerComponent(ComponentAdapter componentAdapter)
registerComponent in interface MutablePicoContainerpublic ComponentAdapter registerComponentImplementation(Class componentImplementation)
registerComponentImplementation in interface MutablePicoContainerpublic ComponentAdapter registerComponentImplementation(Object componentKey, Class componentImplementation)
registerComponentImplementation in interface MutablePicoContainerpublic ComponentAdapter registerComponentImplementation(Object componentKey, Class componentImplementation, Parameter[] parameters)
registerComponentImplementation in interface MutablePicoContainerpublic ComponentAdapter registerComponentInstance(Object componentInstance)
registerComponentInstance in interface MutablePicoContainerpublic ComponentAdapter registerComponentInstance(Object componentKey, Object componentInstance)
registerComponentInstance in interface MutablePicoContainerpublic boolean removeChildContainer(PicoContainer child)
removeChildContainer in interface MutablePicoContainerpublic ComponentAdapter unregisterComponent(Object componentKey)
unregisterComponent in interface MutablePicoContainerpublic ComponentAdapter unregisterComponentByInstance(Object componentInstance)
unregisterComponentByInstance in interface MutablePicoContainerpublic void accept(PicoVisitor visitor)
accept in interface PicoContainerpublic ComponentAdapter getComponentAdapter(Object componentKey)
getComponentAdapter in interface PicoContainerpublic ComponentAdapter getComponentAdapterOfType(Class componentType)
getComponentAdapterOfType in interface PicoContainerpublic Collection getComponentAdapters()
getComponentAdapters in interface PicoContainerpublic List getComponentAdaptersOfType(Class componentType)
getComponentAdaptersOfType in interface PicoContainerpublic Object getComponentInstance(Object componentKey)
getComponentInstance in interface PicoContainerpublic Object getComponentInstanceOfType(Class componentType)
getComponentInstanceOfType in interface PicoContainerpublic List getComponentInstances()
getComponentInstances in interface PicoContainerpublic List getComponentInstancesOfType(Class componentType)
getComponentInstancesOfType in interface PicoContainerpublic PicoContainer getParent()
getParent in interface PicoContainerpublic void verify()
throws PicoVerificationException
verify in interface PicoContainerPicoVerificationExceptionpublic void start()
start in interface Startablepublic void stop()
stop in interface Startablepublic void dispose()
dispose in interface DisposableCopyright © 1996–2019 Geotools. All rights reserved.