public interface IObjectDescriptor
From the view point of the injector, objects are described by a type with a set of optional qualifiers.
Qualifier| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Type |
getDesiredType()
The formal type that the objects should be assignable to.
|
<T extends java.lang.annotation.Annotation> |
getQualifier(java.lang.Class<T> clazz)
Returns an instance of the qualifier, if it is present in this descriptor,
or
null. |
java.lang.annotation.Annotation[] |
getQualifiers()
Returns qualifiers specified for this object descriptor, or
null. |
boolean |
hasQualifier(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Use this method to find out if the object descriptor has a qualifier.
|
java.lang.reflect.Type getDesiredType()
boolean hasQualifier(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
clazz - qualifiertrue if the object descriptor has the qualifier;
falseotherwise<T extends java.lang.annotation.Annotation> T getQualifier(java.lang.Class<T> clazz)
null.T - qualifier classclazz - the qualifier's classnulljava.lang.annotation.Annotation[] getQualifiers()
null.null if there are
no qualifiers specified
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.