1 28 29 package com.caucho.config.core; 30 31 import com.caucho.config.BuilderProgram; 32 import com.caucho.config.BuilderProgramContainer; 33 import com.caucho.util.L10N; 34 35 38 public class ResinWhen extends ResinControl { 39 private static final L10N L = new L10N(ResinWhen.class); 40 41 private BuilderProgramContainer _init = new BuilderProgramContainer(); 42 43 private boolean _test; 44 45 48 public void setTest(boolean value) 49 { 50 _test = value; 51 } 52 53 56 public void addBuilderProgram(BuilderProgram program) 57 { 58 _init.addProgram(program); 59 } 60 61 public boolean configure(Object obj) 62 throws Throwable 63 { 64 if (_test) 65 _init.configure(obj); 66 67 return _test; 68 } 69 } 70 71 | Popular Tags |