org.javalid.external.jsf.lookup
Class JsfLookupExtImpl

java.lang.Object
  extended by org.javalid.external.jsf.lookup.JsfLookupExtImpl
All Implemented Interfaces:
JsfLookupExt

public class JsfLookupExtImpl
extends java.lang.Object
implements JsfLookupExt

Implements JsfLookupExt, which allows access to JSF beans.

Changes for 1.0.1:

Since:
1.0
Version:
1.0.1
Author:
M.Reuvers

Constructor Summary
JsfLookupExtImpl()
           
 
Method Summary
 java.lang.Object getJsfBean(java.lang.String jsfExpression)
          This method locates given bean and returns it.
 void setJvConfigurationWrapper(JvConfigurationWrapper jvConfigWrapper)
          Called by the jv framework when initializing the implementation class (right after constructing an instance).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsfLookupExtImpl

public JsfLookupExtImpl()
Method Detail

getJsfBean

public java.lang.Object getJsfBean(java.lang.String jsfExpression)
Description copied from interface: JsfLookupExt
This method locates given bean and returns it. Raises a JvLookupException if the jsf bean is not found. The implementing class must use the current faces context and use a ValueBinding to retrieve an instance. Other than a backing bean, one could directly lookup a property of a backing bean too this way.

Specified by:
getJsfBean in interface JsfLookupExt
Parameters:
jsfExpression - A valid jsf expression, which will be resolved. Make sure to include the jsf tags: #{myBackingBeanName} for instance.
Returns:
Jsf object (backing bean e.g., cast to proper instance yourself) if found, exception raised if not

setJvConfigurationWrapper

public void setJvConfigurationWrapper(JvConfigurationWrapper jvConfigWrapper)
Description copied from interface: JsfLookupExt
Called by the jv framework when initializing the implementation class (right after constructing an instance).

Specified by:
setJvConfigurationWrapper in interface JsfLookupExt
Parameters:
jvConfigWrapper - The configuration of the framework, allowing access to the current configuration.