Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
ERRAI-1075: Create APT generator for errai-marshalling (#296)

* Create APT generator for NavigationGraphGenerator

* Start to move errai-marshalling configuration out of EnvUtil clas

* Fixed exposed and nonExposed portable types

* Inline methods and add comment

* Fix NullPointerException

* Move Marshalling configuration out of EnvUtil

* Create MarshallersAptGenerator (not working)

* Prepare MarshallersGenerator to run in APT environment too

* Make errai-marshalling use completely interchangeable ErraiConfiguration implementations

* Fix ClassScanner parameters to use reflections while searching @Portable types

* Make MetaClassFinder available for DefinitionsFactoryImpl

* Add @MappingAlias annotation to ErraiConfiguration

* Make MarshallerAptGenerator work, but with errors

* Scan @ServerMarshallers with MetaClassFinder

* Fix tests and improve GWT environment MetaClassFinder

* Improve MarshallerAptGenerator. References not yet resolved in MarshallerFactoryImpl

* Make ErraiMarshalling.gwt.xml use APT generators and skip creation of abstract classes in generated marshallers

* MarshallerAptGenerator working with both GWT and APT generators

* MarshallerAptGenerator working and generating every Marshaller

* Fix logging in errai-demos

* Fix X marshaller not found (generics)

* Little refactors

* Remove static initialization of ErraiAppPropertiesConfiguration in MarshallingConfiguration

* Remove QualifyingMetaDataFactory property

* Remove unsafe call from errai-ioc decorators logic

* Add PageRequest in ErraiMarshallingModule's configuration

* Rollback parameter type to erased

* Revert "Remove unsafe call from errai-ioc decorators logic"

This reverts commit b496229be2f7ecaa50e9ea4c5951035772d10487.

* Fix issue with generic field/parameters. Add time logs to files generation in APT environment.

* Remove @Portable annotation added by mistake

* Remove unsafeIsAnnotationPresent from HasAnnotations

* Remove unsafe methods from HasAnnotations

* Remove AbstractHasAnnotations class

* Refactor configuration files

* Add tests to new properties in @ErraiApp

* Update comments

* PR final pass

* Remove even more unsafe calls from HasAnnotations implementation

* Removed annotation caches and unnecessary methods from subclasses of HasAnnotations

    • -147
    • +68
    ./DefinitionsFactoryImpl.java
    • -14
    • +21
    ./DefinitionsFactorySingleton.java
    • -39
    • +115
    ./MarshallerGeneratorFactory.java
    • -0
    • +117
    ./MarshallingOsgiEnvironmentHelper.java
    • -17
    • +13
    ./api/GeneratorMappingContext.java
    • -14
    • +13
    ./api/GeneratorMappingContextFactory.java
  1. … 145 more files in changeset.
Add Errai APT Generators mechanism

    • -28
    • +24
    ./MarshallerGeneratorFactory.java
    • -1
    • +1
    ./api/model/impl/SimpleConstructorMapping.java
    • -1
    • +1
    ./api/model/impl/SimpleFactoryMapping.java
  1. … 265 more files in changeset.
ERRAI-1070: MarshallerGeneratorFactory optimization for performance and js size.

    • -41
    • +39
    ./MarshallerGeneratorFactory.java
  1. … 1 more file in changeset.
attempt to fix for integration tests.

attempt to fix for integration tests.

Minor fixes for "Fix for marshall() and demarshall() generated methods".

  1. … 7 more files in changeset.
Minor fixes for "Fix for marshall() and demarshall() generated methods".

  1. … 7 more files in changeset.
ERRAI-1063: Add support for Optional fields in portable classes

  1. … 3 more files in changeset.
ERRAI-1063: Add support for Optional fields in portable classes

  1. … 3 more files in changeset.
marshallEnum() optimized.

marshallEnum() optimized.

Fix for marshall() and demarshall() generated methods. In my project resulting js code size went down from 433kb to 380kb, and demarshall() performance few times better now. Fixes both: https://issues.jboss.org/browse/ERRAI-1055 https://issues.jboss.org/browse/ERRAI-892

    • -58
    • +112
    ./api/impl/defaultjava/DefaultJavaMappingStrategy.java
  1. … 13 more files in changeset.
Fix for marshall() and demarshall() generated methods. In my project resulting js code size went down from 433kb to 380kb, and demarshall() performance few times better now. Fixes both: https://issues.jboss.org/browse/ERRAI-1055 https://issues.jboss.org/browse/ERRAI-892

    • -58
    • +112
    ./api/impl/defaultjava/DefaultJavaMappingStrategy.java
  1. … 13 more files in changeset.
Fix inconsistency in getConstructor methods of MetaClass between GWT and Reflection impls.

  1. … 11 more files in changeset.
ERRAI-1019: +Fix MarshallerModelStrategy (details below)

- No longer stop searching after first portable class was

found, but instead collect all matches (a portable class

could be found in a project that is not a webapp e.g.

errai-common when executed from errai root)

- Avoid writing ServerMarshallerFactory.class files to

target dirs of projects which are no webapps

ERRAI-1019: Intermittent build failures with Maven parallel builds (-T)

Delete dead code

  1. … 43 more files in changeset.
ERRAI-1005+: Shorten package name of generated ServerMarhsallingFactoryImpl.

ERRAI-1005+: Shorten package name of generated ServerMarhsallingFactoryImpl.

ERRAI-1005: Add property to generate extremely-shortened marshaller class names

    • -27
    • +24
    ./MarshallerGeneratorFactory.java
  1. … 2 more files in changeset.
ERRAI-1005: Add property to generate extremely-shortened marshaller class names

    • -20
    • +17
    ./MarshallerGeneratorFactory.java
  1. … 2 more files in changeset.
Server marshalling workaround for @CustomMappings in OSGI environment.

Server marshalling workaround for OSGI environments.

Add boolean property to @Portable to generate marshallers for concrete supertypes.

When @Portable(mapSuperTypes=true) is on a class, all concrete

super types will have marshallers generated as if marked portable

themselves.

  1. … 8 more files in changeset.
Fix codegen bug: _elseif triggers generation at statement creation time

  1. … 2 more files in changeset.
Update GWT to 2.8.0-rc1 (lots of details below).

Most of the items below were fixes for tests (which

are now production compiled by default) and dependency

issues (since gwt-user/gwt-dev now bring in transitive

dependencies instead of bundling them in fat jars).

* Upgrade jetty to version in ip-bom

* Fix errai-bus test issues.

* Remove GuardedBy and Nonnull annotations from errai-bus.

* Fix javadoc bug in errai-bus.

* Fix test failures caused by GWT type oracle behaviour change.

(This commit causes the type oracle to hide non-abstract methods

in interfaces:

https://github.com/gwtproject/gwt/commit/75382f1202bf3eaa399d60ebdba42bd7522da3bb)

* Fix AbstractErraiTest so it is usable in errai-ioc-bus-support production compiled tests.

* Fix data-binding tests (have to manually invoke event listeners because dispatchEvent does not work).

* Fixes for errai-cdi-server tests (description below).

* Upgrade Jetty version

* Add -devMode gwt.arg

* Add missing inherited modules

(This was to try and get the tests to run in prod mode,

but there appears to be a compiler bug that prevents this

-- interned value is used before being referenced)

* Use errai.devel.nocache property in Errai GWT generators.

* Fix jaxrs-client bug with Date params.

* Fix errai-ui tests (notes below).

** Fix event dispatching issue (same problem as with data-binding tests).

** Fix NPE when an empty input element fires a change event while bound

to a primitive property in a model.

* Fix errai-navigation native anchor test (same problem as data-binding tests).

* Fix Errai Security tests.

* Fix errai-jpa-client tests.

* Fix gwt-dev version in demos.

* Manage gson version in errai-bom to version required by gwt-dev.

  1. … 100 more files in changeset.
Cleanup and fixes based on FindBugs analysis

  1. … 34 more files in changeset.
ERRAI-948: infinite loop 100% CPU in generated ServerMarshallingFactoryImpl.getMarshaller

    • -16
    • +18
    ./MarshallerGeneratorFactory.java
ERRAI-927: Array marshaller generation causes rebind error.

Write generated source to correct package folders in .errai dir.

  1. … 6 more files in changeset.