cuba.wired
Class EnvironmentDesc

java.lang.Object
  extended by cuba.wired.AbstractDescriptor
      extended by cuba.wired.EnvironmentDesc

public class EnvironmentDesc
extends AbstractDescriptor

This class represents a Wired component's environment entry. It is in general no worth to invent a new type for that primitive stuff, but deriving it from AbstractDescriptor allows to use the same lookup structures as for components and resources.

Author:
Jan Lessner

Field Summary
 
Fields inherited from class cuba.wired.AbstractDescriptor
globalName
 
Constructor Summary
EnvironmentDesc(java.lang.Object value)
           
 
Method Summary
 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.Object getValue()
           
 
Methods inherited from class cuba.wired.AbstractDescriptor
getGlobalName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentDesc

public EnvironmentDesc(java.lang.Object value)
Method Detail

getValue

public java.lang.Object getValue()

checkImplements

public java.lang.String checkImplements(java.lang.Class interfaze,
                                        boolean internal,
                                        boolean exact)
Description copied from class: AbstractDescriptor
Checks wether the component, described by this descriptor provides the passed interface

Specified by:
checkImplements in class AbstractDescriptor
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.