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 Satisfaction
public List<Desire> getDependencies()
getDependencies
in interface Satisfaction
public Type getType()
getType
in interface Satisfaction
public Class<?> getErasedType()
getErasedType
in interface Satisfaction
public boolean hasInstance()
hasInstance
in interface Satisfaction
public <T> T visit(SatisfactionVisitor<T> visitor)
visit
in interface Satisfaction
public Instantiator makeInstantiator(Map<Desire,Instantiator> dependencies, LifecycleManager lm)
makeInstantiator
in interface Satisfaction
Copyright © 2016 GroupLens Research. All rights reserved.