jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/trax/TransformerFactoryImpl.java
equal
deleted
inserted
replaced
135 private String _destinationDirectory = null; |
135 private String _destinationDirectory = null; |
136 |
136 |
137 /** |
137 /** |
138 * The package name prefix for all generated translet classes |
138 * The package name prefix for all generated translet classes |
139 */ |
139 */ |
140 private String _packageName = null; |
140 private static final String DEFAULT_TRANSLATE_PACKAGE = "die.verwandlung"; |
|
141 private String _packageName = DEFAULT_TRANSLATE_PACKAGE; |
141 |
142 |
142 /** |
143 /** |
143 * The jar file name which the translet classes are packaged into |
144 * The jar file name which the translet classes are packaged into |
144 */ |
145 */ |
145 private String _jarFileName = null; |
146 private String _jarFileName = null; |
303 * @return The error listener used with the TransformerFactory |
304 * @return The error listener used with the TransformerFactory |
304 */ |
305 */ |
305 @Override |
306 @Override |
306 public ErrorListener getErrorListener() { |
307 public ErrorListener getErrorListener() { |
307 return _errorListener; |
308 return _errorListener; |
|
309 } |
|
310 |
|
311 /** |
|
312 * Returns the package name. |
|
313 */ |
|
314 String getPackageName() { |
|
315 return _packageName; |
308 } |
316 } |
309 |
317 |
310 /** |
318 /** |
311 * javax.xml.transform.sax.TransformerFactory implementation. |
319 * javax.xml.transform.sax.TransformerFactory implementation. |
312 * Returns the value set for a TransformerFactory attribute |
320 * Returns the value set for a TransformerFactory attribute |
882 if (_autoTranslet) { |
890 if (_autoTranslet) { |
883 byte[][] bytecodes; |
891 byte[][] bytecodes; |
884 String transletClassName = getTransletBaseName(source); |
892 String transletClassName = getTransletBaseName(source); |
885 |
893 |
886 if (_packageName != null) |
894 if (_packageName != null) |
887 transletClassName = _packageName + "." + transletClassName; |
895 transletClassName = _packageName + "." + transletClassName; |
888 |
896 |
889 if (_jarFileName != null) |
897 if (_jarFileName != null) |
890 bytecodes = getBytecodesFromJar(source, transletClassName); |
898 bytecodes = getBytecodesFromJar(source, transletClassName); |
891 else |
899 else |
892 bytecodes = getBytecodesFromClasses(source, transletClassName); |
900 bytecodes = getBytecodesFromClasses(source, transletClassName); |
1284 * Reset the per-session attributes to their default values |
1292 * Reset the per-session attributes to their default values |
1285 */ |
1293 */ |
1286 private void resetTransientAttributes() { |
1294 private void resetTransientAttributes() { |
1287 _transletName = DEFAULT_TRANSLET_NAME; |
1295 _transletName = DEFAULT_TRANSLET_NAME; |
1288 _destinationDirectory = null; |
1296 _destinationDirectory = null; |
1289 _packageName = null; |
1297 _packageName = DEFAULT_TRANSLATE_PACKAGE; |
1290 _jarFileName = null; |
1298 _jarFileName = null; |
1291 } |
1299 } |
1292 |
1300 |
1293 /** |
1301 /** |
1294 * Load the translet classes from local .class files and return |
1302 * Load the translet classes from local .class files and return |