Package org.eclipse.sisu.plexus
Class PlexusBeanBinder
- java.lang.Object
-
- org.eclipse.sisu.plexus.PlexusBeanBinder
-
- All Implemented Interfaces:
com.google.inject.spi.InjectionListener<java.lang.Object>
,BeanBinder
final class PlexusBeanBinder extends java.lang.Object implements BeanBinder, com.google.inject.spi.InjectionListener<java.lang.Object>
BeanBinder
that binds bean properties according to Plexus metadata.
-
-
Field Summary
Fields Modifier and Type Field Description private BeanManager
manager
private PlexusBeanSource[]
sources
-
Constructor Summary
Constructors Constructor Description PlexusBeanBinder(BeanManager manager, java.util.List<PlexusBeanSource> sources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterInjection(java.lang.Object bean)
<B> PropertyBinder
bindBean(com.google.inject.TypeLiteral<B> type, com.google.inject.spi.TypeEncounter<B> encounter)
Returns the appropriatePropertyBinder
for the given bean type.
-
-
-
Field Detail
-
manager
private final BeanManager manager
-
sources
private final PlexusBeanSource[] sources
-
-
Constructor Detail
-
PlexusBeanBinder
PlexusBeanBinder(BeanManager manager, java.util.List<PlexusBeanSource> sources)
-
-
Method Detail
-
bindBean
public <B> PropertyBinder bindBean(com.google.inject.TypeLiteral<B> type, com.google.inject.spi.TypeEncounter<B> encounter)
Description copied from interface:BeanBinder
Returns the appropriatePropertyBinder
for the given bean type.- Specified by:
bindBean
in interfaceBeanBinder
- Parameters:
type
- The bean typeencounter
- The Guice type encounter- Returns:
- Property binder for the given type;
null
if no binder is applicable
-
afterInjection
public void afterInjection(java.lang.Object bean)
- Specified by:
afterInjection
in interfacecom.google.inject.spi.InjectionListener<java.lang.Object>
-
-