File Source: UIActionPreparable.java

         /* 
    P/P   *  Method: org.apache.roller.weblogger.ui.struts2.util.UIActionPreparable__static_init
          */
     1  /*
     2   * Licensed to the Apache Software Foundation (ASF) under one or more
     3   *  contributor license agreements.  The ASF licenses this file to You
     4   * under the Apache License, Version 2.0 (the "License"); you may not
     5   * use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   *
     8   *     http://www.apache.org/licenses/LICENSE-2.0
     9   *
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.  For additional information regarding
    15   * copyright in this work, please see the NOTICE file in the top level
    16   * directory of this distribution.
    17   */
    18  
    19  package org.apache.roller.weblogger.ui.struts2.util;
    20  
    21  
    22  /**
    23   * A Roller specific version of the struts2 Preparable interface.
    24   *
    25   * We only have this because we don't want to use the struts2 Preparable IF due
    26   * to the fact that it is meant to be called much earlier in the interceptor
    27   * stack, namely before our custom interceptors have been processed.  While
    28   * that may make sense in some cases, typically we want to prepare things based
    29   * on the user or weblog that we are working on, so it's often of more use for
    30   * us to prepare *after* our custom interceptors have been processed.
    31   *
    32   * So, this duplicate of the struts2 Preparable interface is here so that we
    33   * can leave the default struts2 prepare() logic in place for any actions we
    34   * may define that want to use that, but also provide a prepare option that is
    35   * executed at the very end of our interceptor stack, just before the action
    36   * method is executed.  This way our custom prepare method can make use of 
    37   * anything our custom interceptors provide.
    38   */
    39  public interface UIActionPreparable {
    40      
    41      public void myPrepare();
    42      
    43  }








SofCheck Inspector Build Version : 2.18479
UIActionPreparable.java 2009-Jan-02 14:25:44
UIActionPreparable.class 2009-Sep-04 03:12:43