Package org.dellroad.stuff.vaadin7
Annotation Type VaadinConfigurable
-
@Retention(RUNTIME) @Target(TYPE) @Documented @Inherited public @interface VaadinConfigurable
Indicates that the class is a candidate for configuration using theVaadinConfigurableAspectaspect.Analogous to Spring's
@Configurableannotation, but causes beans to be autowired into the Spring application context associated with the currentVaadinSession(aka "Vaadin application") bySpringVaadinSessionListenerinstead of the Spring application context associated with the servlet context.For an extra safety check, consider setting
ifSessionNotLocked()where appropriate.For the this annotation to function properly,
@VaadinConfigurableclasses must be woven (either at build time or runtime) using the AspectJ compiler with theVaadinConfigurableAspectaspect (included in thedellroad-stuffJAR file), and theSpringVaadinServletmust be used.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description AutowireautowireWhether and how to automatically autowire dependencies.booleandependencyCheckWhether to enable dependency checking.ErrorActionifSessionNotLockedWhat to do when we discover that theVaadinSessionis not locked when the annotated bean is constructed.booleanpreConstructionWhether to inject dependencies prior to constructor execution.StringvalueConfiguration bean definition template name, if any.
-
-
-
Element Detail
-
value
String value
Configuration bean definition template name, if any.- Returns:
- bean definition template name, or empty string for none
- Default:
- ""
-
-
-
autowire
Autowire autowire
Whether and how to automatically autowire dependencies.- Returns:
- true to autowire
- Default:
- org.springframework.beans.factory.annotation.Autowire.NO
-
-
-
ifSessionNotLocked
ErrorAction ifSessionNotLocked
What to do when we discover that theVaadinSessionis not locked when the annotated bean is constructed. For beans that are (or will interact with) Vaadin widgets, containers, etc., this typically indicates a programming error. In such cases, this property configures what to do, if anything.- Returns:
- action to take if session is not locked
- See Also:
VaadinSession.getLockInstance()
- Default:
- org.dellroad.stuff.java.ErrorAction.EXCEPTION
-
-