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 |
---|---|
Type |
getDesiredType()
The formal type that the objects should be assignable to.
|
<T extends Annotation> |
getQualifier(Class<T> clazz)
Returns an instance of the qualifier, if it is present in this descriptor,
or
null . |
Annotation[] |
getQualifiers()
Returns qualifiers specified for this object descriptor, or
null . |
boolean |
hasQualifier(Class<? extends Annotation> clazz)
Use this method to find out if the object descriptor has a qualifier.
|
Type getDesiredType()
boolean hasQualifier(Class<? extends Annotation> clazz)
clazz
- qualifiertrue
if the object descriptor has the qualifier;
false
otherwise<T extends Annotation> T getQualifier(Class<T> clazz)
null
.T
- qualifier classclazz
- the qualifier's classnull
Annotation[] getQualifiers()
null
.null
if there are
no qualifiers specified
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.