public interface Desire extends Serializable
Satisfaction
s.Modifier and Type | Method and Description |
---|---|
Class<?> |
getDesiredType() |
InjectionPoint |
getInjectionPoint() |
Satisfaction |
getSatisfaction()
Get the satisfaction (concrete type) if this desire is fully resolved.
|
boolean |
isInstantiable()
Query whether this desire is instantiable, that is, resolved to a
concrete type.
|
Desire |
restrict(Class<?> type)
Return a new Desire that restricts the type of this desire to the given
class.
|
Desire |
restrict(Satisfaction satisfaction)
Return a new Desire that restricts the type of this desire to the erased
type of the satisfaction.
|
boolean isInstantiable()
getSatisfaction()
.Satisfaction getSatisfaction()
InjectionPoint getInjectionPoint()
Class<?> getDesiredType()
Desire restrict(Class<?> type)
type
- The restricted typeDesire restrict(Satisfaction satisfaction)
getSatisfaction()
.satisfaction
- The satisfaction to restrict this desire toCopyright © 2016 GroupLens Research. All rights reserved.