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, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public PicoMap(Map delegate)
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public boolean equals(Object o)
public int hashCode()
public Collection values()
public boolean addChildContainer(PicoContainer child)
addChildContainer
in interface MutablePicoContainer
public MutablePicoContainer makeChildContainer()
makeChildContainer
in interface MutablePicoContainer
public ComponentAdapter registerComponent(ComponentAdapter componentAdapter)
registerComponent
in interface MutablePicoContainer
public ComponentAdapter registerComponentImplementation(Class componentImplementation)
registerComponentImplementation
in interface MutablePicoContainer
public ComponentAdapter registerComponentImplementation(Object componentKey, Class componentImplementation)
registerComponentImplementation
in interface MutablePicoContainer
public ComponentAdapter registerComponentImplementation(Object componentKey, Class componentImplementation, Parameter[] parameters)
registerComponentImplementation
in interface MutablePicoContainer
public ComponentAdapter registerComponentInstance(Object componentInstance)
registerComponentInstance
in interface MutablePicoContainer
public ComponentAdapter registerComponentInstance(Object componentKey, Object componentInstance)
registerComponentInstance
in interface MutablePicoContainer
public boolean removeChildContainer(PicoContainer child)
removeChildContainer
in interface MutablePicoContainer
public ComponentAdapter unregisterComponent(Object componentKey)
unregisterComponent
in interface MutablePicoContainer
public ComponentAdapter unregisterComponentByInstance(Object componentInstance)
unregisterComponentByInstance
in interface MutablePicoContainer
public void accept(PicoVisitor visitor)
accept
in interface PicoContainer
public ComponentAdapter getComponentAdapter(Object componentKey)
getComponentAdapter
in interface PicoContainer
public ComponentAdapter getComponentAdapterOfType(Class componentType)
getComponentAdapterOfType
in interface PicoContainer
public Collection getComponentAdapters()
getComponentAdapters
in interface PicoContainer
public List getComponentAdaptersOfType(Class componentType)
getComponentAdaptersOfType
in interface PicoContainer
public Object getComponentInstance(Object componentKey)
getComponentInstance
in interface PicoContainer
public Object getComponentInstanceOfType(Class componentType)
getComponentInstanceOfType
in interface PicoContainer
public List getComponentInstances()
getComponentInstances
in interface PicoContainer
public List getComponentInstancesOfType(Class componentType)
getComponentInstancesOfType
in interface PicoContainer
public PicoContainer getParent()
getParent
in interface PicoContainer
public void verify() throws PicoVerificationException
verify
in interface PicoContainer
PicoVerificationException
public void start()
start
in interface Startable
public void stop()
stop
in interface Startable
public void dispose()
dispose
in interface Disposable
Copyright © 1996–2019 Geotools. All rights reserved.