Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This annotation allows to provide custom meta-data. Just annotate a custom annotation with it. A module like the JSF module has to provide a resolver to query it. A query might return multiple results of the same type. If it doesn't make sense to have multiple results, you can use @ViewMetaData(override=true).

Code Block
java
java
titleCustom Meta-data for View-Configs

@Target({TYPE})
@Retention(RUNTIME)
@Documented

@ViewMetaData
public @interface InfoPage
{
}

The JSF module of CODI allows to resolve this meta-data via the ViewConfigResolver. Since this resolver is aware of JSF specific concepts, it isn't provided by the Core. Please have a look at the documentation of the JSF module to get further information about it.

Navigation

ViewNavigationHandler

...