@Scope @Inherited @Target(value={ANNOTATION_TYPE,TYPE,FIELD,METHOD,CONSTRUCTOR}) @Retention(value=RUNTIME) public @interface UIScoped
Injection with this annotation will create a direct reference to the object rather than a proxy.
There are some limitations when not using proxies. Circular referencing (that is, injecting A to B and B to A) will not work. Interceptors and decorators will not work.
The sister annotation to this is the NormalUIScoped. Both annotations
reference the same underlying scope, so it is possible to get both a proxy
and a direct reference to the same object by using different annotations.
Copyright © 2018 Vaadin Ltd. All Rights Reserved.