|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.application.Application javax.faces.application.ApplicationWrapper org.omnifaces.application.OmniApplication
public class OmniApplication
This OmniFaces application extends the standard JSF application as follows:
Converter
s and Validator
s, so that e.g. @Inject
and
@EJB
work directly in JSF converters and validators without any further modification.
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.
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 |
---|
public OmniApplication(javax.faces.application.Application wrapped)
wrapped
- The wrapped application.Method Detail |
---|
public javax.faces.convert.Converter createConverter(java.lang.String converterId)
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.
createConverter
in class javax.faces.application.ApplicationWrapper
public javax.faces.convert.Converter createConverter(java.lang.Class<?> targetClass)
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.
createConverter
in class javax.faces.application.ApplicationWrapper
public javax.faces.validator.Validator createValidator(java.lang.String validatorId) throws javax.faces.FacesException
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.
createValidator
in class javax.faces.application.ApplicationWrapper
javax.faces.FacesException
public javax.faces.application.Application getWrapped()
getWrapped
in interface javax.faces.FacesWrapper<javax.faces.application.Application>
getWrapped
in class javax.faces.application.ApplicationWrapper
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |