Home » xwork-2.1.5 » com.opensymphony » xwork2 » interceptor » [javadoc | source]

    1   /*
    2    * Copyright (c) 2002-2006 by OpenSymphony
    3    * All rights reserved.
    4    */
    5   package com.opensymphony.xwork2.interceptor;
    6   
    7   import com.opensymphony.xwork2.ModelDriven;
    8   
    9   /**
   10    * Adds the ability to set a model, probably retrieved from a given state.
   11    */
   12   public interface ScopedModelDriven<T> extends ModelDriven<T> {
   13   
   14       /**
   15        * Sets the model
   16        */
   17       void setModel(T model);
   18       
   19       /**
   20        * Sets the key under which the model is stored
   21        * @param key The model key
   22        */
   23       void setScopeKey(String key);
   24       
   25       /**
   26        * Gets the key under which the model is stored
   27        */
   28       String getScopeKey();
   29   }

Home » xwork-2.1.5 » com.opensymphony » xwork2 » interceptor » [javadoc | source]