1 29 30 package com.caucho.jsp.cfg; 31 32 import com.caucho.config.BuilderProgram; 33 import com.caucho.server.webapp.WebApp; 34 import com.caucho.vfs.Path; 35 36 import java.util.ArrayList ; 37 38 41 public class TldPreload { 42 private boolean _isInit; 43 44 private String _uri; 45 private String _location; 46 47 private ArrayList <TldListener> _listeners = new ArrayList <TldListener>(); 48 49 private Path _path; 50 private Throwable _configException; 51 52 55 public void setURI(String uri) 56 { 57 _uri = uri; 58 } 59 60 63 public String getURI() 64 { 65 return _uri; 66 } 67 68 71 public void setLocation(String location) 72 { 73 _location = location; 74 } 75 76 79 public String getLocation() 80 { 81 return _uri; 82 } 83 84 87 public void addListener(TldListener listener) 88 { 89 _listeners.add(listener); 90 } 91 92 95 public void setPath(Path path) 96 { 97 _path = path; 98 } 99 100 103 public Path getPath() 104 { 105 return _path; 106 } 107 108 111 public void setConfigException(Throwable e) 112 { 113 _configException = e; 114 } 115 116 119 public Throwable getConfigException() 120 { 121 return _configException; 122 } 123 124 127 public void addBuilderProgram(BuilderProgram program) 128 { 129 } 130 131 132 135 public void initListeners(WebApp app) 136 throws InstantiationException , IllegalAccessException 137 { 138 if (app == null) 139 return; 140 141 for (int i = 0; i < _listeners.size(); i++) { 142 TldListener listener = _listeners.get(i); 143 144 listener.register(app); 145 } 146 } 147 148 public String toString() 149 { 150 return "TldPreload[" + _path + "]"; 151 } 152 } 153 | Popular Tags |