KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlet > faces > context > FacesPortletContextFactoryImpl


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5
6 package org.exoplatform.portlet.faces.context;
7
8 import javax.faces.FacesException;
9 import javax.faces.context.FacesContext;
10 import javax.faces.context.FacesContextFactory;
11 import javax.faces.lifecycle.Lifecycle;
12 /**
13  * This factory is part of JSR-127 chaper 6
14  *
15  * @author Ove Ranheim (oranheim@users.sourceforge.net)
16  * @since Nov 6, 2003 4:09:23 PM
17  *
18  */

19 public class FacesPortletContextFactoryImpl extends FacesContextFactory {
20
21   public FacesContext getFacesContext( Object JavaDoc config, Object JavaDoc request, Object JavaDoc response, Lifecycle lifecycle ) throws FacesException {
22     try {
23       return new FacesPortletContextImpl(config, request, response );
24     } catch (Exception JavaDoc ex) {
25       ex.printStackTrace() ;
26       throw new FacesException("Cannot instantiate FacesContext ", ex) ;
27     }
28   }
29 }
30
Popular Tags