it.openutils.spring.context
Class WebApplicationContextHolder

java.lang.Object
  extended by it.openutils.spring.context.WebApplicationContextHolder

public final class WebApplicationContextHolder
extends java.lang.Object

Holder class to expose the web application context in the form of a thread-bound WebApplicationContext object.

Use WebApplicationContextListener to expose the current application context.

Version:
$Id: WebApplicationContextHolder.java 275 2007-02-19 17:13:52Z fgiust $
Author:
Fabrizio Giustina

Method Summary
static org.springframework.web.context.WebApplicationContext get()
          Returns the thread-bound WebApplicationContext.
static void set(org.springframework.web.context.WebApplicationContext webApplicationContext)
          Bind a WebApplicationContext to the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static org.springframework.web.context.WebApplicationContext get()
Returns the thread-bound WebApplicationContext.

Returns:
WebApplicationContext

set

public static void set(org.springframework.web.context.WebApplicationContext webApplicationContext)
Bind a WebApplicationContext to the current thread.

Parameters:
webApplicationContext - WebApplicationContext


Copyright © 2007 Openmind. All Rights Reserved.