com.opensymphony.xwork2.config.providers
Class InterceptorBuilder

java.lang.Object
  extended by com.opensymphony.xwork2.config.providers.InterceptorBuilder

public class InterceptorBuilder
extends Object

Builds a list of interceptors referenced by the refName in the supplied PackageConfig.

Version:
$Date: 2006-11-13 09:05:32 +0100 (Mo, 13 Nov 2006) $ $Id: InterceptorBuilder.java 1187 2006-11-13 08:05:32Z mrdon $
Author:
Mike, Rainer Hermanns, tmjee

Field Summary
private static Log LOG
           
 
Constructor Summary
InterceptorBuilder()
           
 
Method Summary
static List<InterceptorMapping> constructInterceptorReference(PackageConfig packageConfig, String refName, Map refParams, Location location, ObjectFactory objectFactory)
          Builds a list of interceptors referenced by the refName in the supplied PackageConfig.
private static List<InterceptorMapping> constructParameterizedInterceptorReferences(PackageConfig packageConfig, InterceptorStackConfig stackConfig, Map refParams, ObjectFactory objectFactory)
          Builds a list of interceptors referenced by the refName in the supplied PackageConfig overriding the properties of the referenced interceptor with refParams.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Log LOG
Constructor Detail

InterceptorBuilder

public InterceptorBuilder()
Method Detail

constructInterceptorReference

public static List<InterceptorMapping> constructInterceptorReference(PackageConfig packageConfig,
                                                                     String refName,
                                                                     Map refParams,
                                                                     Location location,
                                                                     ObjectFactory objectFactory)
                                                              throws ConfigurationException
Builds a list of interceptors referenced by the refName in the supplied PackageConfig.

Parameters:
packageConfig -
refName -
refParams -
Returns:
list of interceptors referenced by the refName in the supplied PackageConfig.
Throws:
ConfigurationException

constructParameterizedInterceptorReferences

private static List<InterceptorMapping> constructParameterizedInterceptorReferences(PackageConfig packageConfig,
                                                                                    InterceptorStackConfig stackConfig,
                                                                                    Map refParams,
                                                                                    ObjectFactory objectFactory)
Builds a list of interceptors referenced by the refName in the supplied PackageConfig overriding the properties of the referenced interceptor with refParams.

Parameters:
packageConfig -
stackConfig -
refParams - The overridden interceptor properies
Returns:
list of interceptors referenced by the refName in the supplied PackageConfig overridden with refParams.


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.