cuba.wired
Class AbstractDescriptor

java.lang.Object
  extended by cuba.wired.AbstractDescriptor
Direct Known Subclasses:
EnvironmentDesc, ResourceFactoryDesc, WiredComponentDesc

public abstract class AbstractDescriptor
extends java.lang.Object

Author:
Arnold Kmpaczyk

Field Summary
protected  java.lang.String globalName
           
 
Constructor Summary
AbstractDescriptor(java.lang.String globalName)
           
 
Method Summary
abstract  java.lang.String checkImplements(java.lang.Class interfaze, boolean internal, boolean exact)
          Checks wether the component, described by this descriptor provides the passed interface
 java.lang.String getGlobalName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

globalName

protected java.lang.String globalName
Constructor Detail

AbstractDescriptor

public AbstractDescriptor(java.lang.String globalName)
Method Detail

getGlobalName

public java.lang.String getGlobalName()

checkImplements

public abstract java.lang.String checkImplements(java.lang.Class interfaze,
                                                 boolean internal,
                                                 boolean exact)
Checks wether the component, described by this descriptor provides the passed interface

Parameters:
interfaze - The required interface
internal - true when looking for an internal interface
exact - true when looking for an exact match, otherwise also a derived interface would be accepted.
Returns:
null if the components matches. Otherwise, the name of the component's interface, supposed to be used in an error message.