org.objectweb.fractal.juliak.factory
Class ControlComponentBoundMap

java.lang.Object
  extended by org.objectweb.fractal.juliak.factory.AbstractMap
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  Component ctrlcomp
          The component controller.
 
Constructor Summary
ControlComponentBoundMap(Component ctrlcomp)
           
 
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 org.objectweb.fractal.juliak.factory.AbstractMap
clear, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

ctrlcomp

protected Component ctrlcomp
The component controller.

Constructor Detail

ControlComponentBoundMap

public ControlComponentBoundMap(Component ctrlcomp)
Method Detail

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