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 TypeConverterCache
converterCache
private static int
EXPRESSION_RECURSION_LIMIT
private com.google.inject.Provider<BeanLocator>
locator
private com.google.inject.Key<V>
placeholderKey
private java.util.Map
properties
-
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 V
get()
private java.lang.Object
interpolate(java.lang.String template, java.lang.Class<?> clazz)
private <T> T
lookup(com.google.inject.Key<T> key)
private static java.lang.String
nullify(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)
-
-