Package org.eclipse.sisu.plexus
Class OptionalPropertyBinding<T>
java.lang.Object
org.eclipse.sisu.plexus.OptionalPropertyBinding<T>
- All Implemented Interfaces:
PropertyBinding
Represents a
BeanProperty bound to an optional Provider.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BeanProperty<T> private final javax.inject.Provider<T> -
Constructor Summary
ConstructorsConstructorDescriptionOptionalPropertyBinding(BeanProperty<T> property, javax.inject.Provider<T> provider) -
Method Summary
Modifier and TypeMethodDescription<B> voidinjectProperty(B bean) Injects the current bound value into the property of the given bean.
-
Field Details
-
property
-
provider
-
-
Constructor Details
-
OptionalPropertyBinding
OptionalPropertyBinding(BeanProperty<T> property, javax.inject.Provider<T> provider)
-
-
Method Details
-
injectProperty
public <B> void injectProperty(B bean) Description copied from interface:PropertyBindingInjects the current bound value into the property of the given bean.- Specified by:
injectPropertyin interfacePropertyBinding- Parameters:
bean- The bean to inject
-