com.vaadin.spring.annotation
Annotation Type SpringUI


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@SpringComponent
@UIScope
public @interface SpringUI

Annotation to be put on UI-subclasses that are to be automatically detected and configured by Spring. Use it like this:

 @SpringUI
 public class MyRootUI extends UI {
     // ...
 }
 
Or like this, if you want to map your UI to another URL (for example if you are having multiple UI subclasses in your application):
 @SpringUI(path = "/myPath")
 public class MyUI extends UI {
     // ...
 }
 
The annotated UI will automatically be placed in the UIScope, so there is no need to add that annotation explicitly.

Author:
Petter Holmström (petter@vaadin.com)

Optional Element Summary
 String path
          The path to which the UI will be bound.
 

path

public abstract String path
The path to which the UI will be bound. For example, a value of "/myUI" would be mapped to "/myContextPath/myVaadinServletPath/myUI". An empty string (default) will map the UI to the root of the servlet. Within a web application, there must not be multiple UI sub classes with the same path.

Default:
""


Copyright © 2016 Vaadin Ltd. All Rights Reserved.