org.icefaces.bean

## Class WindowScopeBeanLocator

- java.lang.Object
- - org.icefaces.bean.WindowScopeBeanLocator

-     public class WindowScopeBeanLocator
      extends java.lang.Object

  This class can be used to locate window scope beans from a non-JSF environment (mainly servlet environment).

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `WindowScopeBeanLocator()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.Object` | `lookupBean(javax.servlet.http.HttpServletRequest request, java.lang.String name)` Lookup a bean by its name in the current window scope.

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

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

- - ### Constructor Detail

    - #### WindowScopeBeanLocator

          public WindowScopeBeanLocator()

  - ### Method Detail

    - #### lookupBean

          public static java.lang.Object lookupBean(javax.servlet.http.HttpServletRequest request,
                                                    java.lang.String name)

      Lookup a bean by its name in the current window scope.
      Parameters:
        `request` - servlet request
        `session` - servlet session
        `name` - the name of the bean as it is declared in its annotation or faces-config.xml file
      Returns:
        the bean when found or null if missing

Copyright 2025 ICEsoft Technologies Canada, Corp. All Rights Reserved.