Package org.eclipse.sisu.plexus
Class PlexusPropertyBinder
- java.lang.Object
-
- org.eclipse.sisu.plexus.PlexusPropertyBinder
-
- All Implemented Interfaces:
PropertyBinder
final class PlexusPropertyBinder extends java.lang.Object implements PropertyBinder
BeanPropertyBinderthat auto-binds properties according to Plexus metadata.
-
-
Field Summary
Fields Modifier and Type Field Description private PlexusConfigurationsconfigurationsprivate BeanManagermanagerprivate PlexusBeanMetadatametadataprivate static booleanOPTIONAL_SUPPORTEDprivate PlexusRequirementsrequirements-
Fields inherited from interface org.eclipse.sisu.bean.PropertyBinder
LAST_BINDING
-
-
Constructor Summary
Constructors Constructor Description PlexusPropertyBinder(BeanManager manager, com.google.inject.spi.TypeEncounter<?> encounter, PlexusBeanMetadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> PropertyBindingbindProperty(BeanProperty<T> property)Returns the appropriatePropertyBindingfor the given bean property.
-
-
-
Field Detail
-
OPTIONAL_SUPPORTED
private static final boolean OPTIONAL_SUPPORTED
-
manager
private final BeanManager manager
-
metadata
private final PlexusBeanMetadata metadata
-
configurations
private final PlexusConfigurations configurations
-
requirements
private final PlexusRequirements requirements
-
-
Constructor Detail
-
PlexusPropertyBinder
PlexusPropertyBinder(BeanManager manager, com.google.inject.spi.TypeEncounter<?> encounter, PlexusBeanMetadata metadata)
-
-
Method Detail
-
bindProperty
public <T> PropertyBinding bindProperty(BeanProperty<T> property)
Description copied from interface:PropertyBinderReturns the appropriatePropertyBindingfor the given bean property.- Specified by:
bindPropertyin interfacePropertyBinder- Parameters:
property- The bean property- Returns:
- Binding for the given property;
nullif no binding is applicable
-
-