Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  • annotations (as in example - the Language.class is an annotation) - the specified annotation must be a BindingAnnotation and must be used for providing a String value by some module. Each placeholder stored using this method will be resolved by replacing it by a value returned by a provider of a String annotated with the specified annotation.
    In order to resolve the language placeholder in above paths, some module must provide String annotated by Language:

    Code Block
    @Provides
    @Language
    public String getLanguage() {
        String language;    
        //some logic to set the language variable
        return language;
    }
  • String - specifying a String which will replace the placeholder directly.

...