Package org.zkoss.za11y.impl

## Class Za11yMessageLoader

- java.lang.Object
- - org.zkoss.za11y.impl.Za11yMessageLoader

- All Implemented Interfaces:
    `MessageLoader`

      public class Za11yMessageLoader
      extends java.lang.Object
      implements MessageLoader

  ZA11Y implementation of MessageLoader
  Since:
    10.3.0
  Author:
    rebeccalai

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Za11yMessageLoader()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `load​(java.lang.StringBuffer out, Execution exec)` | Load the message to output StringBuffer.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Za11yMessageLoader

          public Za11yMessageLoader()

  - ### Method Detail

    - #### load

          public void load​(java.lang.StringBuffer out,
                           Execution exec)
                    throws java.io.IOException

      Description copied from interface: `MessageLoader`
      Load the message to output StringBuffer.

      ZK will scan the `MessageLoader` setting and invoke this method to load the system messages in the following two circumstances.

      1. `Wpds.outLocaleJavaScript(javax.servlet.ServletRequest, javax.servlet.ServletResponse)` (defined in zul/lang/zk.wpd)
      2. `Clients.reloadMessages(java.util.Locale)`
      For the first circumstances, current Execution does not have access to `Desktop` and `Page` instance. Hence, programmer must notice that they cannot use many of Execution's API.
      Specified by:
        `load` in interface `MessageLoader`
      Parameters:
        `out` - StringBuffer to output
        `exec` - current Execution
      Throws:
        `java.io.IOException`