T
- The type returned from this satisfaction's values.public interface SatisfactionVisitor<T>
Satisfaction
s.Satisfaction
Modifier and Type | Method and Description |
---|---|
T |
visitClass(Class<?> clazz)
Called when visiting a satisfaction that will instantiate a class.
|
T |
visitInstance(Object instance)
Called when visiting a satisfaction that will return a pre-configured instance.
|
T |
visitNull()
Called when visiting a null satisfaction.
|
T |
visitProviderClass(Class<? extends javax.inject.Provider<?>> pclass)
Called when visiting a satisfaction that will instantiate and invoke a provider class.
|
T |
visitProviderInstance(javax.inject.Provider<?> provider)
Called when visiting a satisfaction that will invoke a pre-instantiated provider.
|
T visitNull()
T visitClass(Class<?> clazz)
clazz
- The implementation class.T visitInstance(Object instance)
instance
- The instance that will be returned. The visitor should not modify it
in any way.T visitProviderClass(Class<? extends javax.inject.Provider<?>> pclass)
pclass
- The provider class.T visitProviderInstance(javax.inject.Provider<?> provider)
provider
- The provider instance. The visitor should not modify it in any way.Copyright © 2016 GroupLens Research. All rights reserved.