Clone Tools
  • last updated a few seconds ago
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

  1. … 158 more files in changeset.
Add Errai APT Generators mechanism

  1. … 271 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)

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

  1. … 4 more files in changeset.
ERRAI-1005: Add property to generate extremely-shortened marshaller class names

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

  1. … 35 more files in changeset.
Refactor and change ordering of auto-discovery logic for class output.

Name DiscoverStrategies in OuptutDirectoryUtil and move some methods there form ClassChangeUtil.

Clean up DiscoveryStrategies and try CurrentWorkingDirectory strategy first.

    • -122
    • +237
  1. … 1 more file in changeset.
Improve logging for generation of MarshallerFactory and EventQualifierSerializerImpl classes.

  1. … 3 more files in changeset.
Add property for setting class file output directory for marshallers and event qualifier serializers.

  1. … 3 more files in changeset.
ERRAI-682+: Fix EventQualifierSerializerImpl class-loading issue (description below).

Fix two separate issues with the loading and generation of the


* At runtime, only try to load class files with the "file" protocol

(in particular, don't load impls from jars on the classpath -- this

caused the ClassChangeUtil.loadClassDefinition to throw an exception

because it is only meant to load files from within the current project).

* Only generate impls into class output folders when running a

production compile.

  1. … 3 more files in changeset.
ERRAI-682: Qualifiers with members on events

    • -0
    • +31
    • -0
    • +42
    • -0
    • +25
    • -0
    • +226
  1. … 34 more files in changeset.
Add missing license headers and update copyright notice in existing headers.

  1. … 3056 more files in changeset.
Revert "Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header."

Changes from the reverted commit did not preserve original copyright dates.

This reverts commit d8e735dfe2f6ed25fe9e06b753ae2f6154d76b02.

  1. … 3082 more files in changeset.
Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header.

  1. … 3164 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. … 27 more files in changeset.
ERRAI-880: Make generated Errai marshaller class names shorter.

Use only initials for marshalled type package names encoded in marshaller impl class names.

  1. … 4 more files in changeset.
Migrate from commons-lang2 to commons-lang3

  1. … 13 more files in changeset.
Introduced lazy init. method for nested marshallers to avoid initialization cycles

  1. … 5 more files in changeset.
Allow for portable types with underscores in class name

  1. … 5 more files in changeset.
ERRAI-621: All serialization tests passing using deferred generators

  1. … 3 more files in changeset.
Progress on ERRAI-621: Deferred array marshalling working

  1. … 15 more files in changeset.
Progress on custom marshaller generator for ERRAI-612

- first set of tests passing (missing deferred generation of array marshallers on client)

  1. … 16 more files in changeset.
Fixed ERRAI-463: Nested type params on maps don't work

  1. … 7 more files in changeset.
A bunch of new unit tests for MetaClass, MetaField, Meta* implementations.

This version of the fixes related to the new tests breaks the errai-bus integration tests.

Will investigate soon.

  1. … 32 more files in changeset.
dynamic marshalling was not properly defaulting on in devmode

  1. … 2 more files in changeset.
Support for Jackson map marshalling

  1. … 10 more files in changeset.
Support for Jackson map marshalling

  1. … 10 more files in changeset.
massive refactoring: created new errai-config and errai-codegen-gwt package to resolve dependency cycles introduced by new ClassScanner system.

  1. … 81 more files in changeset.
default value for forcing marshallers should be 'false'