SourceForge.net Logo

de.mindmatters.faces.spring.config.support
Class DelegatingApplication

java.lang.Object
  extended byjavax.faces.application.Application
      extended byde.mindmatters.faces.spring.config.support.DelegatingApplication
All Implemented Interfaces:
BeanFactoryAware

public final class DelegatingApplication
extends Application
implements BeanFactoryAware

Cares about all defined pluggable JSF components related to the JSF Application (e.g. UIComponents, Validators, Convertors, NavigationHandlers, ViewHandlers...).

Delegates to the default JSF Application instance in all other cases.

Author:
Andreas Kuhrwahl

Constructor Summary
DelegatingApplication(Application originalApplication)
          Constructs a JSF Application instance with the original Application.
DelegatingApplication(Application originalApplication, BeanFactory beanFactory)
          Constructs a JSF Application instance with the original Application and the given BeanFactory.
 
Method Summary
 void addComponent(java.lang.String componentType, java.lang.String componentClass)
          
 void addConverter(java.lang.Class targetClass, java.lang.String converterClass)
          
 void addConverter(java.lang.String converterId, java.lang.String converterClass)
          
 void addValidator(java.lang.String validatorId, java.lang.String validatorClass)
          
 UIComponent createComponent(java.lang.String componentType)
          
 UIComponent createComponent(ValueBinding componentBinding, FacesContext context, java.lang.String componentType)
          
 Converter createConverter(java.lang.Class targetClass)
          
 Converter createConverter(java.lang.String converterId)
          
 MethodBinding createMethodBinding(java.lang.String ref, java.lang.Class[] params)
          
 Validator createValidator(java.lang.String validatorId)
          
 ValueBinding createValueBinding(java.lang.String ref)
          
 boolean equals(java.lang.Object obj)
          
 ActionListener getActionListener()
          
 java.util.Iterator getComponentTypes()
          
 java.util.Iterator getConverterIds()
          
 java.util.Iterator getConverterTypes()
          
 java.util.Locale getDefaultLocale()
          
 java.lang.String getDefaultRenderKitId()
          
 java.lang.String getMessageBundle()
          
 NavigationHandler getNavigationHandler()
          
 PropertyResolver getPropertyResolver()
          
 StateManager getStateManager()
          
 java.util.Iterator getSupportedLocales()
          
 java.util.Iterator getValidatorIds()
          
 VariableResolver getVariableResolver()
          
 ViewHandler getViewHandler()
          
 int hashCode()
          
 void setActionListener(ActionListener listener)
          
 void setBeanFactory(BeanFactory beanFactory)
          
 void setDefaultLocale(java.util.Locale locale)
          
 void setDefaultRenderKitId(java.lang.String renderKitId)
          
 void setMessageBundle(java.lang.String bundle)
          
 void setNavigationHandler(NavigationHandler handler)
          
 void setPropertyResolver(PropertyResolver resolver)
          
 void setStateManager(StateManager manager)
          
 void setSupportedLocales(java.util.Collection locales)
          
 void setVariableResolver(VariableResolver resolver)
          
 void setViewHandler(ViewHandler handler)
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelegatingApplication

public DelegatingApplication(Application originalApplication)
Constructs a JSF Application instance with the original Application.

Parameters:
originalApplication - the default JSF Application instance implementation

DelegatingApplication

public DelegatingApplication(Application originalApplication,
                             BeanFactory beanFactory)
Constructs a JSF Application instance with the original Application and the given BeanFactory.

Parameters:
originalApplication - the default JSF Application instance implementation
beanFactory - the owning factory to this bean instance
Method Detail

addComponent

public void addComponent(java.lang.String componentType,
                         java.lang.String componentClass)


addConverter

public void addConverter(java.lang.Class targetClass,
                         java.lang.String converterClass)


addConverter

public void addConverter(java.lang.String converterId,
                         java.lang.String converterClass)


addValidator

public void addValidator(java.lang.String validatorId,
                         java.lang.String validatorClass)


createComponent

public UIComponent createComponent(java.lang.String componentType)


createComponent

public UIComponent createComponent(ValueBinding componentBinding,
                                   FacesContext context,
                                   java.lang.String componentType)


createConverter

public Converter createConverter(java.lang.Class targetClass)


createConverter

public Converter createConverter(java.lang.String converterId)


createMethodBinding

public MethodBinding createMethodBinding(java.lang.String ref,
                                         java.lang.Class[] params)


createValidator

public Validator createValidator(java.lang.String validatorId)


createValueBinding

public ValueBinding createValueBinding(java.lang.String ref)


equals

public boolean equals(java.lang.Object obj)


getActionListener

public ActionListener getActionListener()


getComponentTypes

public java.util.Iterator getComponentTypes()


getConverterIds

public java.util.Iterator getConverterIds()


getConverterTypes

public java.util.Iterator getConverterTypes()


getDefaultLocale

public java.util.Locale getDefaultLocale()


getDefaultRenderKitId

public java.lang.String getDefaultRenderKitId()


getMessageBundle

public java.lang.String getMessageBundle()


getNavigationHandler

public NavigationHandler getNavigationHandler()


getPropertyResolver

public PropertyResolver getPropertyResolver()


getStateManager

public StateManager getStateManager()


getSupportedLocales

public java.util.Iterator getSupportedLocales()


getValidatorIds

public java.util.Iterator getValidatorIds()


getVariableResolver

public VariableResolver getVariableResolver()


getViewHandler

public ViewHandler getViewHandler()


hashCode

public int hashCode()


setActionListener

public void setActionListener(ActionListener listener)


setDefaultLocale

public void setDefaultLocale(java.util.Locale locale)


setDefaultRenderKitId

public void setDefaultRenderKitId(java.lang.String renderKitId)


setMessageBundle

public void setMessageBundle(java.lang.String bundle)


setNavigationHandler

public void setNavigationHandler(NavigationHandler handler)


setPropertyResolver

public void setPropertyResolver(PropertyResolver resolver)


setStateManager

public void setStateManager(StateManager manager)


setSupportedLocales

public void setSupportedLocales(java.util.Collection locales)


setVariableResolver

public void setVariableResolver(VariableResolver resolver)


setViewHandler

public void setViewHandler(ViewHandler handler)


setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)

Specified by:
setBeanFactory in interface BeanFactoryAware

toString

public java.lang.String toString()


SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG