org.objectweb.fractal.juliak.factory
Class ControlComponentBoundMap
java.lang.Object
org.objectweb.fractal.juliak.factory.AbstractMap
org.objectweb.fractal.juliak.factory.ControlComponentBoundMap
- All Implemented Interfaces:
- Map
public class ControlComponentBoundMap
- extends AbstractMap
An implementation of a Map
where the get method returns the
interface associated to a control component.
- Since:
- 2.5
- Author:
- Lionel Seinturier
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Method Summary |
boolean |
containsKey(Object key)
Return true if the current control component defines the given interface. |
Object |
get(Object key)
Return the interface associated to the current control component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ctrlcomp
protected Component ctrlcomp
- The component controller.
ControlComponentBoundMap
public ControlComponentBoundMap(Component ctrlcomp)
get
public Object get(Object key)
- Return the interface associated to the current control component.
This method is typically used by controllers which request the control
interface exported by one their peers.
- Specified by:
get
in interface Map
- Overrides:
get
in class AbstractMap
- Parameters:
key
- the interface name
containsKey
public boolean containsKey(Object key)
- Return true if the current control component defines the given interface.
This method is typically used by controllers which request the control
interface exported by one their peers.
- Specified by:
containsKey
in interface Map
- Overrides:
containsKey
in class AbstractMap
- Parameters:
key
- the interface name
- Returns:
- true if the interface exists