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: 2007-12-09 13:03:31 +0100 (Sun, 09 Dec 2007) $ $Id: InterceptorBuilder.java 1703 2007-12-09 12:03:31Z mrdon $
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 refParams, Location location, ObjectFactory objectFactory)
          Builds a list of interceptors referenced by the refName in the supplied PackageConfig.
private static List<InterceptorMapping> constructParameterizedInterceptorReferences(InterceptorLocator interceptorLocator, 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 Logger LOG
Constructor Detail

InterceptorBuilder

public InterceptorBuilder()
Method Detail

constructInterceptorReference

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

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

constructParameterizedInterceptorReferences

private static List<InterceptorMapping> constructParameterizedInterceptorReferences(InterceptorLocator interceptorLocator,
                                                                                    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:
interceptorLocator -
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.