use of jakarta.faces.application.ApplicationFactory in project myfaces by apache.
the class AbstractJsfConfigurableMockTestCase method setUpApplication.
/**
* Setup the <code>application</code> variable and before
* the end by default it is assigned to the <code>facesContext</code>
* variable, calling <code>facesContext.setApplication(application)</code>
*
* @throws Exception
*/
protected void setUpApplication() throws Exception {
ApplicationFactory applicationFactory = (ApplicationFactory) FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
application = applicationFactory.getApplication();
((MockFacesContext) facesContext).setApplication(application);
}
use of jakarta.faces.application.ApplicationFactory in project myfaces by apache.
the class AbstractJsfConfigurableMultipleRequestsTestCase method setUpApplication.
/**
* Setup the <code>application</code> variable and before
* the end by default it is assigned to the <code>facesContext</code>
* variable, calling <code>facesContext.setApplication(application)</code>
*
* @throws Exception
*/
protected void setUpApplication() throws Exception {
ApplicationFactory applicationFactory = (ApplicationFactory) FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
application = applicationFactory.getApplication();
}
use of jakarta.faces.application.ApplicationFactory in project myfaces by apache.
the class AbstractJsfTestCase method setUpApplication.
/**
* Setup the <code>application</code> variable and before
* the end by default it is assigned to the <code>facesContext</code>
* variable, calling <code>facesContext.setApplication(application)</code>
*
* @throws Exception
*/
protected void setUpApplication() throws Exception {
ApplicationFactory applicationFactory = (ApplicationFactory) FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
application = (MockApplication) applicationFactory.getApplication();
facesContext.setApplication(application);
}
use of jakarta.faces.application.ApplicationFactory in project jans by JanssenProject.
the class Labels method init.
@PostConstruct
private void init() {
ApplicationFactory factory = (ApplicationFactory) FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
facesApp = factory.getApplication();
}
use of jakarta.faces.application.ApplicationFactory in project mojarra by eclipse-ee4j.
the class FacesContextImpl method getApplication.
/**
* @see jakarta.faces.context.FacesContext#getApplication()
*/
@Override
public Application getApplication() {
assertNotReleased();
if (null != application) {
return application;
}
ApplicationFactory aFactory = (ApplicationFactory) FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
application = aFactory.getApplication();
assert null != application;
return application;
}
Aggregations