1 16 package javax.faces.event; 17 18 import javax.faces.context.FacesContext; 19 import javax.faces.lifecycle.Lifecycle; 20 import java.util.EventObject ; 21 22 26 public class PhaseEvent extends EventObject 27 { 28 29 private FacesContext _facesContext; 31 private PhaseId _phaseId; 32 33 public PhaseEvent(FacesContext facesContext, PhaseId phaseId, Lifecycle lifecycle) 35 { 36 super(lifecycle); 37 if (facesContext == null) throw new NullPointerException ("facesContext"); 38 if (phaseId == null) throw new NullPointerException ("phaseId"); 39 if (lifecycle == null) throw new NullPointerException ("lifecycle"); 40 41 _facesContext = facesContext; 42 _phaseId = phaseId; 43 } 44 45 public FacesContext getFacesContext() 47 { 48 return _facesContext; 49 } 50 51 public PhaseId getPhaseId() 52 { 53 return _phaseId; 54 } 55 56 } 57 | Popular Tags |