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
BeanPropertyBinder
that auto-binds properties according to Plexus metadata.
-
-
Field Summary
Fields Modifier and Type Field Description private PlexusConfigurations
configurations
private BeanManager
manager
private PlexusBeanMetadata
metadata
private static boolean
OPTIONAL_SUPPORTED
private PlexusRequirements
requirements
-
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> PropertyBinding
bindProperty(BeanProperty<T> property)
Returns the appropriatePropertyBinding
for 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:PropertyBinder
Returns the appropriatePropertyBinding
for the given bean property.- Specified by:
bindProperty
in interfacePropertyBinder
- Parameters:
property
- The bean property- Returns:
- Binding for the given property;
null
if no binding is applicable
-
-