1 14 15 package com.sun.facelets; 16 17 import java.io.IOException ; 18 19 import javax.el.ELException; 20 import javax.faces.FacesException; 21 22 29 public abstract class FaceletFactory { 30 31 private static ThreadLocal Instance = new ThreadLocal (); 32 33 43 public abstract Facelet getFacelet(String uri) throws IOException , 44 FaceletException, FacesException, ELException; 45 46 51 public static final void setInstance(FaceletFactory factory) { 52 Instance.set(factory); 53 } 54 55 60 public static final FaceletFactory getInstance() { 61 return (FaceletFactory) Instance.get(); 62 } 63 } 64 | Popular Tags |