public class MockSatisfaction extends Object implements Satisfaction
Satisfaction.makeInstantiator(Map, LifecycleManager) always returns the same provider.| Constructor and Description |
|---|
MockSatisfaction() |
MockSatisfaction(Class<?> type) |
MockSatisfaction(Class<?> type,
List<Desire> dependencies) |
MockSatisfaction(Class<?> type,
Object instance,
List<Desire> dependencies) |
MockSatisfaction(Class<?> type,
javax.inject.Provider<?> provider,
List<Desire> dependencies) |
| Modifier and Type | Method and Description |
|---|---|
CachePolicy |
getDefaultCachePolicy() |
List<Desire> |
getDependencies() |
Class<?> |
getErasedType() |
Type |
getType() |
boolean |
hasInstance() |
Instantiator |
makeInstantiator(Map<Desire,Instantiator> dependencies,
LifecycleManager lm) |
String |
toString() |
<T> T |
visit(SatisfactionVisitor<T> visitor) |
public MockSatisfaction()
public MockSatisfaction(Class<?> type)
public CachePolicy getDefaultCachePolicy()
getDefaultCachePolicy in interface Satisfactionpublic List<Desire> getDependencies()
getDependencies in interface Satisfactionpublic Type getType()
getType in interface Satisfactionpublic Class<?> getErasedType()
getErasedType in interface Satisfactionpublic boolean hasInstance()
hasInstance in interface Satisfactionpublic <T> T visit(SatisfactionVisitor<T> visitor)
visit in interface Satisfactionpublic Instantiator makeInstantiator(Map<Desire,Instantiator> dependencies, LifecycleManager lm)
makeInstantiator in interface SatisfactionCopyright © 2016 GroupLens Research. All rights reserved.