1 5 package org.exoplatform.faces.test; 6 7 import java.util.ResourceBundle ; 8 9 import javax.faces.component.UIComponentBase ; 10 import org.exoplatform.services.log.LogService; 11 17 public class UIComponent1 extends UIComponentBase { 18 static int counter = 0 ; 19 20 public UIComponent1(LogService service) { 21 22 } 23 24 public UIComponent1(UIComponent2 component2, LogService service) { 25 System.out.println("Call constructor UIComponent1(UIComponent2, LogService)") ; 26 System.out.println("LogService : " + service) ; 27 System.out.println("UIComponent2 : " + component2) ; 28 } 29 30 public String getFamily() { return "" ; } 31 32 public class UIInnerComponent extends UIComponentBase { 33 public UIInnerComponent() { 34 35 } 36 37 public UIInnerComponent(LogService service) { 38 System.out.println("=== > Call constructor UIInnerComponent(LogService)") ; 39 System.out.println("LogService : " + service) ; 40 counter++ ; 41 if (counter > 5) System.exit(0) ; 42 } 43 44 public String getFamily() { return "" ; } 45 } 46 } 47 | Popular Tags |