org.omnifaces.application
Class OmniApplication

java.lang.Object
  extended by javax.faces.application.Application
      extended by javax.faces.application.ApplicationWrapper
          extended by org.omnifaces.application.OmniApplication
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.application.Application>

public class OmniApplication
extends javax.faces.application.ApplicationWrapper

This OmniFaces application extends the standard JSF application as follows:

This application is already registered by OmniFaces' own faces-config.xml and thus gets auto-initialized when the OmniFaces JAR is bundled in a web application, so end-users do not need to register this application explicitly themselves.

Since:
1.6
Author:
Radu Creanga , Bauke Scholtz
See Also:
ConverterProvider, ValidatorProvider

Constructor Summary
OmniApplication(javax.faces.application.Application wrapped)
          Construct a new OmniFaces application around the given wrapped application.
 
Method Summary
 javax.faces.convert.Converter createConverter(java.lang.Class<?> targetClass)
          If the ConverterProvider is present and there's a CDI managed Converter instance available, then return it, else delegate to getWrapped() which may return the JSF managed Converter instance.
 javax.faces.convert.Converter createConverter(java.lang.String converterId)
          If the ConverterProvider is present and there's a CDI managed Converter instance available, then return it, else delegate to getWrapped() which may return the JSF managed Converter instance.
 javax.faces.validator.Validator createValidator(java.lang.String validatorId)
          If the ValidatorProvider is present and there's a CDI managed Validator instance available, then return it, else delegate to getWrapped() which may return the JSF managed Validator instance.
 javax.faces.application.Application getWrapped()
           
 
Methods inherited from class javax.faces.application.ApplicationWrapper
addBehavior, addComponent, addConverter, addConverter, addDefaultValidatorId, addELContextListener, addELResolver, addValidator, createBehavior, createComponent, createComponent, createComponent, createComponent, createComponent, createComponent, createMethodBinding, createValueBinding, evaluateExpressionGet, getActionListener, getBehaviorIds, getComponentTypes, getConverterIds, getConverterTypes, getDefaultLocale, getDefaultRenderKitId, getDefaultValidatorInfo, getELContextListeners, getELResolver, getExpressionFactory, getMessageBundle, getNavigationHandler, getProjectStage, getPropertyResolver, getResourceBundle, getResourceHandler, getStateManager, getSupportedLocales, getValidatorIds, getVariableResolver, getViewHandler, publishEvent, publishEvent, removeELContextListener, setActionListener, setDefaultLocale, setDefaultRenderKitId, setMessageBundle, setNavigationHandler, setPropertyResolver, setResourceHandler, setStateManager, setSupportedLocales, setVariableResolver, setViewHandler, subscribeToEvent, subscribeToEvent, unsubscribeFromEvent, unsubscribeFromEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OmniApplication

public OmniApplication(javax.faces.application.Application wrapped)
Construct a new OmniFaces application around the given wrapped application.

Parameters:
wrapped - The wrapped application.
Method Detail

createConverter

public javax.faces.convert.Converter createConverter(java.lang.String converterId)
If the ConverterProvider is present and there's a CDI managed Converter instance available, then return it, else delegate to getWrapped() which may return the JSF managed Converter instance.

Overrides:
createConverter in class javax.faces.application.ApplicationWrapper

createConverter

public javax.faces.convert.Converter createConverter(java.lang.Class<?> targetClass)
If the ConverterProvider is present and there's a CDI managed Converter instance available, then return it, else delegate to getWrapped() which may return the JSF managed Converter instance.

Overrides:
createConverter in class javax.faces.application.ApplicationWrapper

createValidator

public javax.faces.validator.Validator createValidator(java.lang.String validatorId)
                                                throws javax.faces.FacesException
If the ValidatorProvider is present and there's a CDI managed Validator instance available, then return it, else delegate to getWrapped() which may return the JSF managed Validator instance.

Overrides:
createValidator in class javax.faces.application.ApplicationWrapper
Throws:
javax.faces.FacesException

getWrapped

public javax.faces.application.Application getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.application.Application>
Overrides:
getWrapped in class javax.faces.application.ApplicationWrapper