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: 2008-06-21 11:29:39 +0200 (Sa, 21 Jun 2008) $ $Id: InterceptorBuilder.java 1833 2008-06-21 09:29:39Z rainerh $
Author:
Mike, Rainer Hermanns, tmjee

Field Summary
private static Logger LOG
           
 
Constructor Summary
InterceptorBuilder()
           
 
Method Summary
static List<InterceptorMapping> constructInterceptorReference(InterceptorLocator interceptorLocator, String refName, Map<String,String> refParams, Location location, ObjectFactory objectFactory)
          Builds a list of interceptors referenced by the refName in the supplied PackageConfig (InterceptorMapping object).
private static List<InterceptorMapping> constructParameterizedInterceptorReferences(InterceptorLocator interceptorLocator, InterceptorStackConfig stackConfig, Map<String,String> 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 Logger LOG
Constructor Detail

InterceptorBuilder

public InterceptorBuilder()
Method Detail

constructInterceptorReference

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

Parameters:
interceptorLocator -
refName -
refParams -
Returns:
list of interceptors referenced by the refName in the supplied PackageConfig (InterceptorMapping object).
Throws:
ConfigurationException

constructParameterizedInterceptorReferences

private static List<InterceptorMapping> constructParameterizedInterceptorReferences(InterceptorLocator interceptorLocator,
                                                                                    InterceptorStackConfig stackConfig,
                                                                                    Map<String,String> 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:
interceptorLocator -
stackConfig -
refParams - The overridden interceptor properies
Returns:
list of interceptors referenced by the refName in the supplied PackageConfig overridden with refParams.


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