Interface TranslationHost


public interface TranslationHost
Host that dispatches translation requests to registered handlers.
Since:
5.2.33
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Handler providing means to translate a certain type of content.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    register(@NotNull TranslationType<T> type, @NotNull TranslationHost.Translator<T> handler)
    Register a handler translating contents of the specified type.
  • Method Details

    • register

      <T> void register(@NotNull @NotNull TranslationType<T> type, @NotNull @NotNull TranslationHost.Translator<T> handler)
      Register a handler translating contents of the specified type.
      Type Parameters:
      T - The type of the content object.
      Parameters:
      type - The type of content to translate.
      handler - The translator.
      Since:
      5.2.33