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.Modifier and Type | Field and Description |
---|---|
private BeanManager |
manager |
private PlexusBeanSource[] |
sources |
Constructor and Description |
---|
PlexusBeanBinder(BeanManager manager,
java.util.List<PlexusBeanSource> sources) |
Modifier and Type | Method and 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 appropriate
PropertyBinder for the given bean type. |
private final BeanManager manager
private final PlexusBeanSource[] sources
PlexusBeanBinder(BeanManager manager, java.util.List<PlexusBeanSource> sources)
public <B> PropertyBinder bindBean(com.google.inject.TypeLiteral<B> type, com.google.inject.spi.TypeEncounter<B> encounter)
BeanBinder
PropertyBinder
for the given bean type.bindBean
in interface BeanBinder
type
- The bean typeencounter
- The Guice type encounternull
if no binder is applicablepublic void afterInjection(java.lang.Object bean)
afterInjection
in interface com.google.inject.spi.InjectionListener<java.lang.Object>