SWS-351 - Arbitrary parameter injection for @Endpoints

This commit is contained in:
Arjen Poutsma
2010-05-07 09:58:31 +00:00
parent f738427b74
commit 3556ee7f01
3 changed files with 77 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006 the original author or authors.
* Copyright 2005-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -47,18 +47,19 @@ public abstract class JaxpVersion {
private static int jaxpVersion = JAXP_10;
static {
ClassLoader classLoader = JaxpVersion.class.getClassLoader();
try {
ClassUtils.forName(JAXP_14_CLASS_NAME);
ClassUtils.forName(JAXP_14_CLASS_NAME, classLoader);
jaxpVersion = JAXP_14;
}
catch (ClassNotFoundException ex1) {
try {
ClassUtils.forName(JAXP_13_CLASS_NAME);
ClassUtils.forName(JAXP_13_CLASS_NAME, classLoader);
jaxpVersion = JAXP_13;
}
catch (ClassNotFoundException ex2) {
try {
ClassUtils.forName(JAXP_11_CLASS_NAME);
ClassUtils.forName(JAXP_11_CLASS_NAME, classLoader);
jaxpVersion = JAXP_11;
}
catch (ClassNotFoundException ex3) {