Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
AF-546: Reduce startup time of AppFormer apps and workbenches

This commit:

* Adds logging to audit startup to entrypoints, RPCs, bean manager

* Load RPC proxies before the bus initializes so that startup RPC calls

can be queued up and sent in a single payload

* Don't wait for bus to initialize to send CDI client assoicate message

(allows this to also be sent with initial bus payload)

* Don't delay InitVotes in SecurityContextImpl if a user has been injected

onto the host page

  1. … 8 more files in changeset.
Update ClientBeanManager javadoc.

Delete dead code

  1. … 41 more files in changeset.
ERRAI-1016: Duplicate method getContext() in generated Proxy error

  1. … 1 more file in changeset.
Remove 'destroyAllBeans' method from bean manager API.

    • -22
    • +17
    ./SyncToAsyncBeanManagerAdapter.java
  1. … 16 more files in changeset.
Support destruction of @ApplicationScoped beans.

Previously a @PreDestroy would be called but

@ApplicationScoped instance would remain in service.

  1. … 7 more files in changeset.
ERRAI-999: Many console errors logged when JS Interop exports not enabled

Use array literal for assignable types in IOC factories instead of adding to list.

  1. … 2 more files in changeset.
Reduce code size of IOC factories by removing 'addQualifier' invocations.

  1. … 5 more files in changeset.
Reduce number of generated methods in IOC factories.

  1. … 1 more file in changeset.
ERRAI-981: Convert @UncaughtException to work with all uncaught exceptions (not just those in the client message bus)

    • -0
    • +58
    ./ErraiUncaughtExceptionHandler.java
  1. … 20 more files in changeset.
ERRAI-975: Remove temporary client-side replacements of Optional, Function, Supplier, etc.

  1. … 22 more files in changeset.
Disable WindowInjectionContext by default (add property to enable).

  1. … 4 more files in changeset.
Fix bugs with ManagedInstance in producer methods (description below).

* Destroy dependent scoped parameters of producer methods.

* Fix stack overflow when when destroying managed bean returned by producer method.

  1. … 7 more files in changeset.
Make native JsType interface for WindowInjectionContext and add logging.

  1. … 7 more files in changeset.
Generate factory for types from ContextualTypeProviders.

    • -0
    • +44
    ./HasContextualInstanceSupport.java
  1. … 10 more files in changeset.
ERRAI-961: Migrate IOCUtil functionality from kie-wb-common into errai-ioc as enhanced version of Instance<T>

Created a ManagedInstance<T> type with an API like Instance<T> except

with different memory management semantics. A ManagedInstance<T> holds

references to all dependent beans it creates and will destroy them

when it itself is destroyed.

This feature required adding capability to for disposing beans

to IOCProviders.

  1. … 24 more files in changeset.
Remove default method from JsTypeProvider (see below)

GWT is now hiding default methods from generators and

prevents us from generating subtypes of JsTypeProvider

which override getQualifiers:

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

  1. … 1 more file in changeset.
ERRAI-959: Dependent bean in cycle with no default constructor can blow up at runtime.

  1. … 3 more files in changeset.
Improve bootstrapper startup by replacing hashmaps with lists in FactoryHandleImpl.

Add wiring type for pseudo-scopes, validate lack of pseudo-scope cycles (with tests).

This commit changes @EntryPoint and @Singleton to pseudo-scopes, meaning

they are not proxied and cannot be in a cycle that does not contain a

normal-scoped bean.

  1. … 19 more files in changeset.
Fix test for dynamic qualifiers.

  1. … 1 more file in changeset.
Support looking up dynamic annotation members by name

Add support for getQualifiers to JsTypeBeanDefs

* Todo: better support for array members.

* Todo: fix test

    • -0
    • +32
    ./DynamicAnnotation.java
    • -0
    • +74
    ./DynamicAnnotationImpl.java
  1. … 12 more files in changeset.
Rename External to Shared and WindowScope to SharedSingleton, +javadoc

  1. … 11 more files in changeset.
Support sharing a single instance of a JsType defined in two scripts via new window scope.

  1. … 15 more files in changeset.
Fix two bugs with looking up JsTypes through the bean manager (see below).

1. Return correct bean name for types found in WindowInjectionContext.

2. Do not return bean defs from WindowInjectionContext beans if

the bean manager already has a bean def for it.

  1. … 3 more files in changeset.
Fix getName in JsTypeBeanDef

  1. … 1 more file in changeset.
Fix JavaDocs of JsTypeProvider

Support looking up @JsTypes by their @Named values

  1. … 4 more files in changeset.