org.apache.myfaces.trinidad.context

## Class SuspendCallback

- java.lang.Object
- - org.apache.myfaces.trinidad.context.SuspendCallback

-     public abstract class SuspendCallback
      extends Object

  Class to use with `ComponentContextManager.partialSuspend(javax.faces.context.FacesContext, org.apache.myfaces.trinidad.context.SuspendCallback)` to control how far into the context change stack to suspend to. This is useful for components that need to suspend to a certain point in the change stack, but not the entire stack.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `SuspendCallback.SuspendResult` Return value for the `getSuspendResult(ComponentContextChange)` function to specify when to stop suspending the context change stack.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SuspendCallback()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract SuspendCallback.SuspendResult` | `getSuspendResult(ComponentContextChange change)` Determine how suspension should behave with regards to partial suspension.

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

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

- - ### Constructor Detail

    - #### SuspendCallback

          public SuspendCallback()

  - ### Method Detail

    - #### getSuspendResult

          public abstract SuspendCallback.SuspendResult getSuspendResult(ComponentContextChange change)

      Determine how suspension should behave with regards to partial suspension.
      Parameters:
        `change` - The change to consider suspending
      Returns:
        enumeration specifying how far to suspend to

Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.