|
JSF-Spring | |||||||||
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.factory.DelegatingVariableResolver
public final class DelegatingVariableResolver
VariableResolver
implementation
that delegates to the internal BeanFactory of the used
WebApplicationContext
and original
resolver of the underlying JSF implementation to resolve the asked beans or
variables.
ManagedBeanFactory
Constructor Summary | |
---|---|
DelegatingVariableResolver(VariableResolver originalVariableResolver)
Creates a DelegatingVariableResolver with the given VariableResolver originalVariableResolver . |
|
DelegatingVariableResolver(VariableResolver originalVariableResolver,
BeanFactory beanFactory)
Creates a DelegatingVariableResolver with the given VariableResolver originalVariableResolver . |
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
WebApplicationContext and returns
it. |
void |
setBeanFactory(BeanFactory beanFactory)
Callback that supplies the owning factory to a bean instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingVariableResolver(VariableResolver originalVariableResolver)
originalVariableResolver
.
originalVariableResolver
- the original resolver of the underlying JSF implementationpublic DelegatingVariableResolver(VariableResolver originalVariableResolver, BeanFactory beanFactory)
originalVariableResolver
.
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
WebApplicationContext
and returns
it. Otherwise delegates to the encapsulated original
VariableResolver
.
resolveVariable
in class 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)
public void setBeanFactory(BeanFactory beanFactory)
Invoked after the population of normal bean properties but
before an initialization callback such as
InitializingBean.afterPropertiesSet()
or a custom init-method.
setBeanFactory
in interface BeanFactoryAware
beanFactory
- owning BeanFactory (may not be null
).
The bean can immediately call methods on the factory.BeanInitializationException
|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |