Package org.eclipse.sisu.plexus
Class PlexusBeanBinder
java.lang.Object
org.eclipse.sisu.plexus.PlexusBeanBinder
- All Implemented Interfaces:
com.google.inject.spi.InjectionListener<Object>,BeanBinder
final class PlexusBeanBinder
extends Object
implements BeanBinder, com.google.inject.spi.InjectionListener<Object>
BeanBinder that binds bean properties according to Plexus metadata.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterInjection(Object bean) <B> PropertyBinderbindBean(com.google.inject.TypeLiteral<B> type, com.google.inject.spi.TypeEncounter<B> encounter) Returns the appropriatePropertyBinderfor the given bean type.
-
Field Details
-
manager
-
sources
-
-
Constructor Details
-
PlexusBeanBinder
PlexusBeanBinder(BeanManager manager, List<PlexusBeanSource> sources)
-
-
Method Details
-
bindBean
public <B> PropertyBinder bindBean(com.google.inject.TypeLiteral<B> type, com.google.inject.spi.TypeEncounter<B> encounter) Description copied from interface:BeanBinderReturns the appropriatePropertyBinderfor the given bean type.- Specified by:
bindBeanin interfaceBeanBinder- Parameters:
type- The bean typeencounter- The Guice type encounter- Returns:
- Property binder for the given type;
nullif no binder is applicable
-
afterInjection
- Specified by:
afterInjectionin interfacecom.google.inject.spi.InjectionListener<Object>
-