⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 prepareactionfactoryproxy.java

📁 webwork source
💻 JAVA
字号:
/* * WebWork, Web Application Framework * * Distributable under Apache license. * See terms of license at opensource.org */package webwork.action.factory;import webwork.action.Action;import webwork.action.PrepareAction;import java.util.Map;/** * Prepares or initializes an action implementing the {@link PrepareAction} * interface after first locating it through the action factory proxy chain. * * @author Rickard 謆erg (rickard@middleware-company.com) * @version $Revision: 1.5 $ */public class PrepareActionFactoryProxy   extends ActionFactoryProxy{   // Attributes ----------------------------------------------------   Map applicationMap;   // Constructors --------------------------------------------------   public PrepareActionFactoryProxy(ActionFactory aFactory)   {      super(aFactory);   }   // ActionFactory implementation -------------------------------   public Action getActionImpl(String aName)      throws Exception   {      // Get action from factory      Action action = getNextFactory().getActionImpl(aName);      // Check if action wants to prepare itself      if (action instanceof PrepareAction)      {         ((PrepareAction)action).prepare();      }      // Return action      return action;   }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -