com.opensymphony.xwork2.config.entities
Class InterceptorStackConfig.Builder
java.lang.Object
com.opensymphony.xwork2.config.entities.InterceptorStackConfig.Builder
- All Implemented Interfaces:
- InterceptorListHolder
- Enclosing class:
- InterceptorStackConfig
public static class InterceptorStackConfig.Builder
- extends Object
- implements InterceptorListHolder
The builder for this object. An instance of this object is the only way to construct a new instance. The
purpose is to enforce the immutability of the object. The methods are structured in a way to support chaining.
After setting any values you need, call the build()
method to create the object.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
target
private InterceptorStackConfig target
InterceptorStackConfig.Builder
public InterceptorStackConfig.Builder(String name)
name
public InterceptorStackConfig.Builder name(String name)
addInterceptor
public InterceptorStackConfig.Builder addInterceptor(InterceptorMapping interceptor)
- Specified by:
addInterceptor
in interface InterceptorListHolder
addInterceptors
public InterceptorStackConfig.Builder addInterceptors(List<InterceptorMapping> interceptors)
- Specified by:
addInterceptors
in interface InterceptorListHolder
location
public InterceptorStackConfig.Builder location(Location loc)
build
public InterceptorStackConfig build()
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.