cuba.wired
Class ComponentMap

java.lang.Object
  extended by cuba.wired.DescriptorMap
      extended by cuba.wired.ComponentMap

public class ComponentMap
extends DescriptorMap

Author:
Arnold Kmpaczyk

Constructor Summary
ComponentMap()
           
 
Method Summary
 WiredComponentDesc lookup(java.lang.Class interfaceType)
          Deprecated.  
 WiredComponentDesc lookup(java.lang.String globalName)
           
 void registerDescriptor(WiredComponentDesc description)
           
 
Methods inherited from class cuba.wired.DescriptorMap
getDescriptors, lookupDescriptor, registerDescriptor, registerDescriptor, replaceDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentMap

public ComponentMap()
Method Detail

lookup

public WiredComponentDesc lookup(java.lang.String globalName)

lookup

public WiredComponentDesc lookup(java.lang.Class interfaceType)
Deprecated. 

Lookup a descriptor by its interface.

Parameters:
interfaceType - The requested interface to be implemented by the component of interest
Returns:
The first matching component's descriptor. If there is no exact match to be found the function also checks all registered components for derived interfaces. If there is no match at all, the function returns null.

registerDescriptor

public void registerDescriptor(WiredComponentDesc description)
                        throws InitException
Throws:
InitException