Package org.eclipse.sisu.wire
Class PlaceholderBeanProvider<V>
- java.lang.Object
-
- org.eclipse.sisu.wire.PlaceholderBeanProvider<V>
-
- All Implemented Interfaces:
com.google.inject.Provider<V>,javax.inject.Provider<V>
final class PlaceholderBeanProvider<V> extends java.lang.Object implements com.google.inject.Provider<V>Provides a single bean; the name used to lookup/convert the bean is selected at runtime.
-
-
Field Summary
Fields Modifier and Type Field Description private TypeConverterCacheconverterCacheprivate static intEXPRESSION_RECURSION_LIMITprivate com.google.inject.Provider<BeanLocator>locatorprivate com.google.inject.Key<V>placeholderKeyprivate java.util.Mapproperties
-
Constructor Summary
Constructors Constructor Description PlaceholderBeanProvider(com.google.inject.Provider<BeanLocator> locator, com.google.inject.Key<V> key)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Vget()private java.lang.Objectinterpolate(java.lang.String template, java.lang.Class<?> clazz)private <T> Tlookup(com.google.inject.Key<T> key)private static java.lang.Stringnullify(java.lang.String value)
-
-
-
Field Detail
-
EXPRESSION_RECURSION_LIMIT
private static final int EXPRESSION_RECURSION_LIMIT
- See Also:
- Constant Field Values
-
properties
@Inject @Parameters private java.util.Map properties
-
converterCache
@Inject private TypeConverterCache converterCache
-
locator
private final com.google.inject.Provider<BeanLocator> locator
-
placeholderKey
private final com.google.inject.Key<V> placeholderKey
-
-
Constructor Detail
-
PlaceholderBeanProvider
PlaceholderBeanProvider(com.google.inject.Provider<BeanLocator> locator, com.google.inject.Key<V> key)
-
-
Method Detail
-
get
public V get()
-
lookup
private <T> T lookup(com.google.inject.Key<T> key)
-
nullify
private static java.lang.String nullify(java.lang.String value)
-
interpolate
private java.lang.Object interpolate(java.lang.String template, java.lang.Class<?> clazz)
-
-