org.jboss.jsfunit.seam
Class SeamUtil

java.lang.Object
  extended by org.jboss.jsfunit.seam.SeamUtil

public class SeamUtil
extends Object

This class contains some useful methods for working with the Seam framework.

Since:
1.0
Author:
Stan Silvert

Method Summary
static void invalidateSeamSession(javax.servlet.http.HttpServletRequest httpServletRequest)
          Invalidate the session the Seam way.
static boolean isSeamInitialized()
          Return true if the Seam framework is present and initialized.
static boolean isSeamPresent()
          Determines if Seam is present in this web application.
static void suppressSeamComponentWarning()
          The Seam Component class puts out lots of warning messages when the Seam session is manipulated with JSFUnit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isSeamPresent

public static boolean isSeamPresent()
Determines if Seam is present in this web application.

Returns:
true if Seam is present, false otherwise.

isSeamInitialized

public static boolean isSeamInitialized()
Return true if the Seam framework is present and initialized.

Returns:
true if Seam is intialized, false

invalidateSeamSession

public static void invalidateSeamSession(javax.servlet.http.HttpServletRequest httpServletRequest)
Invalidate the session the Seam way. This allows Seam to clean itself up when the session is ending.

Parameters:
httpServletRequest - The current request.

suppressSeamComponentWarning

public static void suppressSeamComponentWarning()
The Seam Component class puts out lots of warning messages when the Seam session is manipulated with JSFUnit. This method supresses those warnings and sets the log level to ERROR (for Log4J) or SEVERE (for java.util.logging).



Copyright © 2007-2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.