Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Rename errai-weld-integration to errai-cdi-server

Our server-side CDI integration module doesn't contain any

Weld specific logic anymore (since Errai 3) and is fully

portable to other CDI containers.

    • -35
    • +0
    ./cdi/client/event/DataBoundEvent.java
    • -10
    • +0
    ./cdi/client/event/FunFinishEvent.java
    • -23
    • +0
    ./cdi/client/event/LocalEventA.java
    • -22
    • +0
    ./cdi/client/event/MyAbstractEvent.java
    • -21
    • +0
    ./cdi/client/event/MyAbstractEventInterface.java
    • -24
    • +0
    ./cdi/client/event/MyEventImpl.java
    • -22
    • +0
    ./cdi/client/event/MyEventInterface.java
    • -32
    • +0
    ./cdi/client/event/ReceivedEvent.java
    • -59
    • +0
    ./cdi/client/event/UnobservedEvent.java
  1. … 661 more files in changeset.
Performance improvments and IOCExtensionConfigurator API change (details below).

* Don't pass in IOCProcessor to IOCExtentionsConfigurators. Allows caching

of scanned extensions, decorators, and tasks.

* Don't load class from class loader in JavaReflectionClass.

* Reduce usage of MetaClass.asClass for class literals in generated code.

* Overload some methods in EnvUtil to take MetaClasses (to avoid calling asClass).

* Never clear non-reloadable types from MetaClassCache.

  1. … 26 more files in changeset.
Reduce amount of proxies required by handling producer cycles more like Weld.

IoC generation now fails when there is a producer in a cycle that uses

constructor injection. Producers in cycles that use field injection

continue to work.

Because of this change we no longer need to proxy @Dependent

scoped beans injected into constructors.

  1. … 1 more file in changeset.
Load async types with only sync dependencies.

  1. … 25 more files in changeset.
Support CDI events across dynamic modules

    • -0
    • +10
    ./cdi/event/client/ClientLocalEventAObserver.java
    • -0
    • +8
    ./cdi/event/client/shared/JsTypeEvent.java
  1. … 4 more files in changeset.
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.

    • -45
    • +0
    ./cdi/injection/client/DependentBeanCycleA.java
    • -56
    • +0
    ./cdi/injection/client/DependentBeanCycleB.java
    • -0
    • +8
    ./cdi/injection/client/DisabledAlternativeBean.java
    • -22
    • +0
    ./cdi/injection/client/HistoryStack.java
    • -2
    • +4
    ./cdi/injection/client/InjectionTestModule.java
    • -0
    • +31
    ./cdi/injection/client/ProducesProxiableOfAbstractType.java
  1. … 367 more files in changeset.
Fixed ERRAI-845: Timed methods with type DELAYED cause compilation error

    • -0
    • +10
    ./cdi/scheduler/client/BeanWithTimedMethod.java
  1. … 1 more file in changeset.
Implemented isUnsatisfied and isAmbiguous for Instance<T>

    • -1
    • +15
    ./cdi/injection/client/InstanceTestBean.java
    • -0
    • +5
    ./cdi/injection/client/UnmanagedBean.java
  1. … 1 more file in changeset.
Moved all test base classes to src/test/java

- This makes sure applications can compile in strict

mode without inheriting the JUnit GWT module

- To use our test base classes for application tests

the corresponding test-jar has to be included i.e.

<dependency>

<groupId>org.jboss.errai</groupId>

<artifactId>errai-cdi-client</artifactId>

<type>test-jar</type>

<scope>test</scope>

</dependency>

Conflicts:

errai-bom/pom.xml

errai-cdi/weld-integration/pom.xml

errai-ioc/pom.xml

  1. … 35 more files in changeset.
Moved all test base classes to src/test/java

- This makes sure applications can compile in strict

mode without inheriting the JUnit GWT module

- To use our test base classes for application tests

the corresponding test-jar has to be included i.e.

<dependency>

<groupId>org.jboss.errai</groupId>

<artifactId>errai-cdi-client</artifactId>

<type>test-jar</type>

<scope>test</scope>

</dependency>

  1. … 35 more files in changeset.
Remove method in class causing failing test-case (this was already done for a similar test in errai-bus.

Fixed ERRAI-747: IOC container reports unresolvable bean with injection cycle involving interfaces on both ends

    • -0
    • +27
    ./cdi/injectioncycle/InjectionCycleTestModule.gwt.xml
    • -0
    • +7
    ./cdi/injectioncycle/client/Cycle1TypeA.java
    • -0
    • +16
    ./cdi/injectioncycle/client/Cycle1TypeAImpl.java
    • -0
    • +7
    ./cdi/injectioncycle/client/Cycle1TypeB.java
    • -0
    • +16
    ./cdi/injectioncycle/client/Cycle1TypeBImpl.java
  1. … 2 more files in changeset.
Fixed ERRAI-700: Improper use of CDI SPI by Errai's CDI extension

    • -0
    • +13
    ./cdi/event/client/EventObserverTestModule.java
  1. … 12 more files in changeset.
Fixed ERRAI-700: Improper use of CDI SPI by Errai's CDI extension

    • -0
    • +13
    ./cdi/event/client/EventObserverTestModule.java
  1. … 13 more files in changeset.
Fixed ERRAI-700: Improper use of CDI SPI by Errai's CDI extension

    • -0
    • +13
    ./cdi/event/client/EventObserverTestModule.java
  1. … 14 more files in changeset.
Fixed ERRAI-700: Improper use of CDI SPI by Errai's CDI extension

    • -0
    • +13
    ./cdi/event/client/EventObserverTestModule.java
  1. … 13 more files in changeset.
Fixed ERRAI-569: Proxies causing wrong @PostContruct ordering

  1. … 3 more files in changeset.
Fixed ERRAI-679: Observing java.lang.Object leads to code overload in BootsrapperImpl

    • -0
    • +4
    ./cdi/event/client/EventObserverTestModule.java
  1. … 1 more file in changeset.
minor refactoring of event observer tests (timeout)

Fixed event advertising tests

- Now tearing down and stopping the fake bus instance

- Depending on the executing order, our event advertising tests caused failures in other CDI tests. The reason was that CDIClientBoostrap held on to static references of errai bus.

  1. … 1 more file in changeset.
Ensured to cancel timer in event advertising tests (caused intermittent failures)

Added test suite for CDI events

    • -0
    • +19
    ./cdi/event/client/test/ErraiCDIEventTestSuite.java
Fixed ERRAI-680: Now able to generate private accessors for multiple methods with the same name

    • -0
    • +5
    ./cdi/event/client/EventObserverTestModule.java
  1. … 1 more file in changeset.
Fixed bug that caused intermittent failures in EventObserverIntegrationTest

The problem was that we relied on a runtime check (canMarshall) to decided whether or not to advertise a CDI event type to the server. However, this check will always fail for abstract types as canMarshall will return false. So whenever the bus reconnected we failed to advertise observable interfaces and abstract types to the server. Since we already collect all local-only event types on startup this check can now be removed.

    • -3
    • +1
    ./cdi/client/event/MyAbstractEvent.java
  1. … 1 more file in changeset.
Add tests to cover sync/async dependent/pseudo-dependent scoped producers.

    • -0
    • +14
    ./cdi/producer/client/DepBeanProducer.java
    • -0
    • +15
    ./cdi/producer/client/DepBeanProducerConsumer.java
    • -0
    • +5
    ./cdi/producer/client/Produceable.java
    • -0
    • +12
    ./cdi/producer/client/PseudoBeanProducer.java
    • -0
    • +15
    ./cdi/producer/client/PseudoBeanProducerConsumer.java
    • -0
    • +5
    ./cdi/producer/client/PseudoProduceable.java
  1. … 7 more files in changeset.
Rename @AltLogger to @NamedLogger

  1. … 6 more files in changeset.
Add tests for server cdi logger injection

    • -0
    • +27
    ./cdi/producer/LoggerProviderTestModule.gwt.xml
    • -0
    • +12
    ./cdi/producer/client/shared/LoggerTestUtil.java
    • -0
    • +53
    ./cdi/producer/client/test/LoggerProviderTest.java
    • -0
    • +35
    ./cdi/producer/server/ClassWithLoggerField.java
    • -0
    • +40
    ./cdi/producer/server/ClassWithNamedLoggerField.java
Improve independence of CDIServiceAnnotationTests

Moved PageReguest and MapsTo to common to avoid server side dep. on navigation

    • -1
    • +1
    ./cdi/client/event/UnobservedEvent.java
  1. … 56 more files in changeset.
Update event advertising tests to proper integration tests.