Package org.zkoss.zkmax.init

## Class EmbeddedDesktopInit

- java.lang.Object
- - org.zkoss.zkmax.init.EmbeddedDesktopInit

- All Implemented Interfaces:
    `DesktopInit`

      public class EmbeddedDesktopInit
      extends java.lang.Object
      implements DesktopInit

  A embedded desktop info check
  Since:
    9.0.0
  Author:
    rudyhuang, jameschu

- - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `init​(Desktop desktop, java.lang.Object request)` | Called when a desktop is created and initialized.

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

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

- - ### Constructor Detail

    - #### EmbeddedDesktopInit

          public EmbeddedDesktopInit()

  - ### Method Detail

    - #### init

          public void init​(Desktop desktop,
                           java.lang.Object request)
                    throws java.lang.Exception

      Description copied from interface: `DesktopInit`
      Called when a desktop is created and initialized.

      Note: you can access the execution by calling `Desktop.getExecution()` or `Executions.getCurrent()`.

      Specified by:
        `init` in interface `DesktopInit`
      Parameters:
        `desktop` - the desktop being created and initialized
        `request` - the request caused the desktop being created. If HTTP and servlet, it is javax.servlet.http.HttpServletRequest. If portlet, it is javax.portlet.RenderRequest.
      Throws:
        `java.lang.Exception`