Skip to content

Instantly share code, notes, and snippets.

@jeanouii
Created February 7, 2014 09:24
Show Gist options
  • Select an option

  • Save jeanouii/8859635 to your computer and use it in GitHub Desktop.

Select an option

Save jeanouii/8859635 to your computer and use it in GitHub Desktop.
@View(basePath = "/", extension = "xhtml", navigation = View.NavigationMode.REDIRECT)
public interface Navigation extends ViewConfig {
@View
class Index implements Navigation {}
@View
class Login implements Navigation {}
@View(basePath = "/post/")
interface PostsNavigation extends Navigation {}
@View
class Post implements PostsNavigation {}
@Secured(LoggedInUserVoter.class)
interface SecuredPostsNavigation extends PostsNavigation {}
@View(name = "create-post")
class CreatePost implements SecuredPostsNavigation {}
@View(name = "edit-post")
class EditPost implements SecuredPostsNavigation {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment