org.apache.turbine.modules.actions

## Class InitContextsAction

- java.lang.Object
- - org.apache.turbine.modules.Assembler
  - - org.apache.turbine.modules.Action
    - - org.apache.turbine.modules.actions.InitContextsAction

-     public class InitContextsAction
      extends Action

  Used to initialize JNDI contexts.
  Version:
    $Id: InitContextsAction.java 1695634 2015-08-13 00:35:47Z tv $
  Author:
    Greg Ritter, Henning P. Schmiedehausen, Peter Courcoux

- - ### Field Summary

    - ### Fields inherited from class org.apache.turbine.modules.Action

      `CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `InitContextsAction()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `doPerform(PipelineData pipelineData)` This action will place the contexts defined in the TurbineResources instance (if any) into the data.contexts Hashtable.

    - ### Methods inherited from class org.apache.turbine.modules.Action

      `getPrefix, perform`

    - ### Methods inherited from class org.apache.turbine.modules.Assembler

      `getRunData`

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

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

- - ### Constructor Detail

    - #### InitContextsAction

          public InitContextsAction()

  - ### Method Detail

    - #### doPerform

          public void doPerform(PipelineData pipelineData)
                         throws NamingException

      This action will place the contexts defined in the TurbineResources instance (if any) into the data.contexts Hashtable.
      Specified by:
        `doPerform` in class `Action`
      Parameters:
        `pipelineData` - The PipelineRunData object for the current request.
      Throws:
        `NamingException` - could not create InitialContext

Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.