All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jwebmp.guicedservlets.jsf.FacesApplicationFactoryWrapper Maven / Gradle / Ivy

The newest version!
package com.jwebmp.guicedservlets.jsf;

import javax.faces.application.Application;
import javax.faces.application.ApplicationFactory;

/**
 * An implementation of {@link ApplicationFactory}.
 *
 * @author John Yeary
 * @version 1.0
 */
public class FacesApplicationFactoryWrapper
		extends ApplicationFactory
{

	private ApplicationFactory factory;

	/**
	 * Constructor that wraps an {@link ApplicationFactory} instance.
	 *
	 * @param factory
	 * 		The factory instance to be wrapped.
	 */
	public FacesApplicationFactoryWrapper(ApplicationFactory factory)
	{
		this.factory = factory;
	}

	/**
	 * {@inheritDoc}
	 * 

* This method returns a {@link FacesApplicationWrapper} instance.

*/ @Override public Application getApplication() { Application application = factory.getApplication(); return new FacesApplicationWrapper(application); } /** * {@inheritDoc} */ @Override public void setApplication(Application application) { factory.setApplication(application); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy