org.apache.tiles.core.prepare.factory

## Interface PreparerFactory

- All Known Implementing Classes:
    BasicPreparerFactory, StrutsPreparerFactory

      public interface PreparerFactory

  Factory interface used to create/retrieve instances of the `ViewPreparer` interface.

  This factory provides an extension point into the default tiles implementation. Implementors wishing to provide per request initialization of the ViewPreparer (for instance) may provide a custom prerparer.

  Since:
    2.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `ViewPreparer` | `getPreparer(String name, Request context)` Create the named {link ViewPreparer} for the specified context.

- - ### Method Detail

    - #### getPreparer

          ViewPreparer getPreparer(String name,
                                   Request context)

      Create the named {link ViewPreparer} for the specified context.
      Parameters:
        `name` - ViewPreparer name, commonly the qualified classname.
        `context` - the context within which the preparerInstance will be invoked.
      Returns:
        instance of the ViewPreparer

Copyright © 2000–2025 Apache Software Foundation. All rights reserved.