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

  1. … 153 more files in changeset.
Create APT generators for errai-ioc module

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

  1. … 266 more files in changeset.
ERRAI-1044: Generic array type parameters cause error in GWT MetaClasses

  1. … 5 more files in changeset.
typo

Fix inconsistency in getConstructor methods of MetaClass between GWT and Reflection impls.

  1. … 11 more files in changeset.
Create APT MetaClass implementation + more MetaClass tests.

  1. … 27 more files in changeset.
Fixes in codegen (description below).

* In GWTClass, return type parameters if type is generic.

* In BuildMetaClass, adhere to getErased javadoc and return same

instance if type has no type variables.

* Fix getErased impl for JavaReflectionClass.

* Always return type parameters in GWTClass (even for erased types) to make behaviour

the same as in JavaReflectionClass.

  1. … 2 more files in changeset.
Temporarily revert ERRAI-1018 commit because of downstream project issues.

This reverts commit a35e7f90a7d23ce5595da188f55d1c954c14c8c6.

  1. … 24 more files in changeset.
ERRAI-1018: Support for javax.enterprise.inject.Typed

* Rework the mechanism for having injectables satisfy only injection

sites. Now each injectable supplies a predicate that evaluates the

path used to resolve itself for a given site. The predicate can veto

a path so that the injectable is not resolved for that site.

* Use new path predicate mechanism to support @Typed. Beans with

@Typed have a predicate that only returns true if the injection

site is one of the types declared in the @Typed annotation.

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

  1. … 35 more files in changeset.
Fix codegen issue when calling MetaClass.hashContent on type with type wildcard.

Java 8 refactoring for codegen

  1. … 45 more files in changeset.
Add missing license headers and update copyright notice in existing headers.

  1. … 3046 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. … 3072 more files in changeset.
Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header.

  1. … 3154 more files in changeset.
Fixed generic array handling in GWTParameterizedType.getTypeParameters.

GWTParameterizedType.getTypeParameters throw IllegalArgumentException

for generic array type parameter.

  1. … 2 more files in changeset.
GWTClass cache now retaining classes that can't change between refreshes

  1. … 1 more file in changeset.
GWTClass cache now retaining classes that can't change between refreshes

  1. … 1 more file in changeset.
Allow for caching of parameterized GWTClasses

Allow for caching of parameterized GWTClasses

Avoid looking up cache once for every GWTClass instance

Avoid looking up cache once for every GWTClass instance

Performance improvements for codegen/metaclass

- Caching GWTClass instances, getMethods(), getInterfaces()

and getPackageName() within one rebind phase

Credits go to Josh Blinick ;)

  1. … 2 more files in changeset.
Performance improvements for codegen/metaclass

- Caching GWTClass instances, getMethods(), getInterfaces()

and getPackageName() within one rebind phase

Credits go to Josh Blinick ;)

  1. … 2 more files in changeset.
GWT 2.7 workaround for unwanted public fields in java.lang.Object

perf. improvement: only construct fqcn once per instance

Perf. optimizations and cleanup for annotation scanning

  1. … 16 more files in changeset.
Perf. optimizations and cleanup for annotation scanning

  1. … 16 more files in changeset.
Improvements to content-based hash in MetaClass

- Including private fields/methods when generating hash

- toString() on MetaField no longer triggers loading/caching of declaring MetaClass

- made hashContent public

  1. … 10 more files in changeset.