public abstract class WrapperManager<T extends ActionWrapper>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ContextInjectorComponent |
contextInjectorComponent |
protected java.util.Map<java.lang.String,T> |
wrappers |
Modifier | Constructor and Description |
---|---|
protected |
WrapperManager() |
Modifier and Type | Method and Description |
---|---|
protected abstract T[] |
createArray(int len)
Creates an array of wrapper instances.
|
protected <R extends T> |
createWrapper(java.lang.Class<R> wrapperClass)
Creates new wrapper.
|
protected java.lang.Class<? extends T>[] |
expand(java.lang.Class<? extends T>[] actionWrappers)
Replaces all
BaseActionWrapperStack with stack values. |
protected java.util.Set<T> |
getAll()
Returns all action wrappers.
|
protected void |
initializeWrapper(T wrapper)
Initializes action wrapper.
|
T |
lookup(java.lang.String name)
Looks up for existing wrapper.
|
T |
resolve(java.lang.Class<? extends T> wrapperClass)
Resolves single wrapper.
|
T[] |
resolveAll(java.lang.Class<? extends T>[] wrapperClasses)
Resolves wrappers.
|
@PetiteInject protected ContextInjectorComponent contextInjectorComponent
protected final java.util.Map<java.lang.String,T extends ActionWrapper> wrappers
protected java.util.Set<T> getAll()
public T lookup(java.lang.String name)
null
if wrapper is not already registered.public T resolve(java.lang.Class<? extends T> wrapperClass)
public T[] resolveAll(java.lang.Class<? extends T>[] wrapperClasses)
expanding
.protected abstract T[] createArray(int len)
protected void initializeWrapper(T wrapper)
protected java.lang.Class<? extends T>[] expand(java.lang.Class<? extends T>[] actionWrappers)
BaseActionWrapperStack
with stack values.protected <R extends T> R createWrapper(java.lang.Class<R> wrapperClass)
Copyright © 2003-present Jodd Team