|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.el.VariableResolver de.mindmatters.faces.spring.context.support.DelegatingVariableResolver
VariableResolver
implementation that delegates to the
internal BeanFactory of the used
FacesWebApplicationContext
and
original resolver of the underlying JSF implementation to resolve the asked
beans or variables.
SpringManagedBeanFactory
,
FacesDelegatingManagedBeanFactory
Constructor Summary | |
DelegatingVariableResolver()
Creates a DelegatingVariableResolver. |
|
DelegatingVariableResolver(VariableResolver originalVariableResolver)
Creates a DelegatingVariableResolver with the given VariableResolver originalVariableResolver . |
|
DelegatingVariableResolver(VariableResolver originalVariableResolver,
BeanFactory beanFactory)
Creates a DelegatingVariableResolver with the given VariableResolver originalVariableResolver and the given BeanFactory
beanFactory . |
Method Summary | |
java.lang.Object |
resolveVariable(FacesContext context,
java.lang.String name)
Checks wether there is a bean with name name in the
internal BeanFactory of the used
FacesWebApplicationContext
and returns it. |
void |
setBeanFactory(BeanFactory beanFactory)
|
void |
setOriginalVariableResolver(VariableResolver originalVariableResolver)
Sets the original resolver of the underlying JSF implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DelegatingVariableResolver()
public DelegatingVariableResolver(VariableResolver originalVariableResolver)
originalVariableResolver
.
originalVariableResolver
- the original resolver of the underlying JSF implementationpublic DelegatingVariableResolver(VariableResolver originalVariableResolver, BeanFactory beanFactory)
originalVariableResolver
and the given BeanFactory
beanFactory
.
originalVariableResolver
- the original resolver of the underlying JSF implementationbeanFactory
- the BeanFactory this VariableResolver uses for bean resolvingMethod Detail |
public java.lang.Object resolveVariable(FacesContext context, java.lang.String name)
name
in the
internal BeanFactory of the used
FacesWebApplicationContext
and returns it. Otherwise delegates to the encapsulated original
VariableResolver
.
context
- context against which to resolve the bean namename
- name of the bean to be resolved
EvaluationException
- if an exception is thrown while resolving the variable nameVariableResolver.resolveVariable(javax.faces.context.FacesContext,
java.lang.String)
,
FacesWebApplicationContext
public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory
in interface BeanFactoryAware
public void setOriginalVariableResolver(VariableResolver originalVariableResolver)
originalVariableResolver
- the original resolver of the underlying JSF implementation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |