See: Description
Interface | Description |
---|---|
BeanBinder |
Provides custom
PropertyBinder s for beans that contain one or more properties. |
BeanManager |
Service that manages the lifecycle of beans.
|
BeanProperty<T> |
Represents a bean property such as a field or setter method.
|
PropertyBinder |
Provides custom
PropertyBinding s for bean properties such as fields or setter methods. |
PropertyBinding |
Represents a bean property that has been bound by a
PropertyBinder . |
Class | Description |
---|---|
BeanInjector<B> |
MembersInjector that takes PropertyBinding s and applies them to bean instances. |
BeanLifecycle |
Represents the JSR250 lifecycle for a particular bean type.
|
BeanListener |
TypeListener that listens for bean types and arranges for their properties to be injected. |
BeanProperties |
Iterable that iterates over potential bean properties in a class hierarchy. |
BeanPropertyField<T> |
BeanProperty backed by a Field . |
BeanPropertyIterator<T> |
Read-only
Iterator that picks out potential bean properties from declared members. |
BeanPropertySetter<T> |
BeanProperty backed by a single-parameter setter Method . |
BeanScheduler |
Schedules safe activation of beans even when cyclic dependencies are involved.
Takes advantage of the new Guice ProvisionListener SPI, if available at runtime. |
BeanScheduler.CycleActivator |
Listens to provisioning events in order to determine safe activation points.
|
DeclaredMembers |
Iterable that iterates over declared members of a class hierarchy. |
DeclaredMembers.MemberIterator |
Read-only
Iterator that uses rolling DeclaredMembers.View s to traverse the different members. |
LifecycleBuilder |
Builds
BeanLifecycle s by searching class hierarchies for JSR250 annotations. |
LifecycleManager |
BeanManager that manages JSR250 beans and schedules lifecycle events. |
LifecycleModule |
Guice
Module that provides JSR250 lifecycle management by following PostConstruct and
PreDestroy annotations. |
Enum | Description |
---|---|
DeclaredMembers.View |
Enum implementation that provides different views of a class's members. |
Annotation Type | Description |
---|---|
IgnoreSetters |
Annotates class hierarchies that don't want setter injection.
|
For example:
new AbstractModule() { @Override protected void configure() { bindListener( Matchers.any(), new BeanListener( new MyBeanBinder() ) ); } }
MyBeanBinder
will be asked to supply a PropertyBinder
for each bean type, say Foo.
That PropertyBinder
will be asked to supply a PropertyBinding
for each property (field or setter) in Foo.
Those PropertyBinding
s are then used to automatically configure any injected instances of Foo.