cuba.wired
Class EnvironmentDesc
java.lang.Object
cuba.wired.AbstractDescriptor
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvironmentDesc
public EnvironmentDesc(java.lang.Object value)
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 interfaceinternal
- true when looking for an internal interfaceexact
- 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.