1 29 30 package com.caucho.config.j2ee; 31 32 import com.caucho.config.BuilderProgram; 33 import com.caucho.util.L10N; 34 import com.caucho.util.Log; 35 36 import java.util.ArrayList ; 37 import java.util.logging.Logger ; 38 39 42 public class InjectProgram { 43 private static final L10N L = new L10N(InjectProgram.class); 44 private static final Logger log = Log.open(InjectProgram.class); 45 46 private final BuilderProgram []_program; 47 48 public InjectProgram(ArrayList <BuilderProgram> program) 49 { 50 _program = new BuilderProgram[program.size()]; 51 program.toArray(_program); 52 } 53 54 57 public void configure(Object bean) 58 { 59 if (bean != null) { 60 for (int i = 0; i < _program.length; i++) 61 _program[i].configure(bean); 62 } 63 } 64 } 65 66 | Popular Tags |