Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
ERRAI-590, ERRAI-850, ERRAI-851: Implement new IOC container (more description below).

The new container uses code genererated in multiple files instead

of a single monolithic file. At compile time an implementation of

org.jboss.errai.ioc.client.container.Factory is generated for each bean.

The factory is responsible for requesting dependencies from other

factories to wire the bean, running code generated by decorators,

and cleaning up when the bean is destroyed.

The GWT.create calls for the factories are generated in the

BootstrapperImpl. The BootstrapperImpl now only registers

factories with their respective contexts.

This container has the following differences from behaviour

in the 3.x version of errai-ioc:

* Normal scoped beans must be proxiable.

* The @New qualifier is not supported.

* Normal scoped beans (except @Entrypoint or with @Startup) are lazily instatiated.

* @Alternative beans must be explicitly enabled (even if no other beans match).

* Resolution of types behaves like CDI. Some cases that worked in 3.x may now be ambiguous.

** Injecting a common supertype of multiple concrete classes is ambiguous.

* Different API for programmtically adding beans to bean manager.

  1. … 381 more files in changeset.
- move the javax.enterprise support package to be a top-level module so both errai-ioc and errai-cdi can depend on it. - add support for @Specializes in errai-cdi. - cleanup the way that event qualification is handled to make it more clear and consistent. - introduce the @Default qualifier to be consistent with server-side CDI.

  1. … 67 more files in changeset.
Fix: Bean manager properly associates overloaded bean types with qualifiers

  1. … 7 more files in changeset.
fix

  1. … 7 more files in changeset.
- Add support for a basic BeanManager in the client - Expand the javax.enterprise compat package for GWT to allow encoding of built-in CDI qualifiers

  1. … 40 more files in changeset.