站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

SequenceRegistryBuilder - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.framework.portlet
Class SequenceRegistryBuilder

java.lang.Object
  extended byorg.jboss.portal.test.framework.portlet.SequenceRegistryBuilder
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener
Direct Known Subclasses:
ActionRequestSequenceBuilder, ActionResponseSequenceBuilder, BasicTestSequenceBuilder, DispatcherSequenceBuilder, DispatcherSequenceBuilder, FileModSequenceBuilder, Log4jSequenceBuilder, PortalContextSequenceBuilder, PortletConfigSequenceBuilder, PortletConfigSequenceBuilder, PortletConfigSequenceBuilder, PortletContextSequenceBuilder, PortletContextSequenceBuilder, PortletInterfaceSequenceBuilder, PortletModeSequenceBuilder, PortletModeSequenceBuilder, PortletModeSequenceBuilder, PortletPreferencesSequenceBuilder, PortletRequestsSequenceBuilder, PortletRequestsSequenceBuilder, PortletResponsesSequenceBuilder, PortletResponsesSequenceBuilder, PortletSessionSequenceBuilder, PortletSessionSequenceBuilder, PortletSessionUtilSequenceBuilder, PortletUrlSequenceBuilder, PortletURLSequenceBuilder, PreferencesSequenceBuilder, PreferencesSequenceBuilder, RenderRequestSequenceBuilder, RenderResponseSequenceBuilder, SessionSequenceBuilder, SessionSequenceBuilder, TestBuilder, WindowStateSequenceBuilder, WindowStatesSequenceBuilder

public abstract class SequenceRegistryBuilder
extends java.lang.Object
implements javax.servlet.ServletContextListener

Builder is invoked when web application initialization process is starting. It builds sequence of tests for this action

Version:
$Revision: 5448 $
Author:
Boleslaw Dawidowicz

Field Summary
private  org.apache.log4j.Logger log
           
static java.lang.String METHOD_PATTERN
           
private static SequenceRegistry registry
           
 
Constructor Summary
SequenceRegistryBuilder()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
           
 void contextInitialized(javax.servlet.ServletContextEvent sce)
          Finds all methods matching pattern in current instance and invokes them.
private  java.util.List findMethods(java.lang.String namePattern)
          Returning List of Method objects matching given name pattern
static SequenceRegistry getRegistry()
           
private  void setRegistry(SequenceRegistry registry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registry

private static SequenceRegistry registry

log

private final org.apache.log4j.Logger log

METHOD_PATTERN

public static java.lang.String METHOD_PATTERN
Constructor Detail

SequenceRegistryBuilder

public SequenceRegistryBuilder()
Method Detail

getRegistry

public static SequenceRegistry getRegistry()

setRegistry

private void setRegistry(SequenceRegistry registry)

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent sce)
Finds all methods matching pattern in current instance and invokes them. Methods add Sequence into SequenceRegistry. Then SequenceRegistry is injected into ServletContext

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Parameters:
sce -

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

findMethods

private java.util.List findMethods(java.lang.String namePattern)
Returning List of Method objects matching given name pattern

Parameters:
namePattern -
Returns:
List of Method objects