Author: thomas.diesler(a)jboss.com
Date: 2007-03-05 05:00:36 -0500 (Mon, 05 Mar 2007)
New Revision: 2519
Modified:
trunk/jbossws-core/src/java/org/jboss/ws/core/jaxws/UnifiedWebServiceRefHandler.java
Log:
Delegate handler chain resolution yo meta data builder
Modified:
trunk/jbossws-core/src/java/org/jboss/ws/core/jaxws/UnifiedWebServiceRefHandler.java
===================================================================
---
trunk/jbossws-core/src/java/org/jboss/ws/core/jaxws/UnifiedWebServiceRefHandler.java 2007-03-04
17:18:14 UTC (rev 2518)
+++
trunk/jbossws-core/src/java/org/jboss/ws/core/jaxws/UnifiedWebServiceRefHandler.java 2007-03-05
10:00:36 UTC (rev 2519)
@@ -149,11 +149,9 @@
// Resolve path to handler chain
if (handlerChain != null)
{
- boolean validHandlerChain = false;
try
{
new URL(handlerChain);
- validHandlerChain = true;
}
catch (MalformedURLException ex)
{
@@ -165,24 +163,9 @@
else if (anElement instanceof Class)
declaringClass = (Class)anElement;
- String resource =
declaringClass.getPackage().getName().replace('.', '/') + "/" +
handlerChain;
- if (findHandlerChain(vfsRoot, resource))
- {
- validHandlerChain = true;
- handlerChain = resource;
- }
-
- resource = "WEB-INF/classes/" + resource;
- if (findHandlerChain(vfsRoot, resource))
- {
- validHandlerChain = true;
- handlerChain = resource;
- }
+ handlerChain = declaringClass.getPackage().getName().replace('.',
'/') + "/" + handlerChain;
}
-
- if (validHandlerChain == false)
- throw new IllegalStateException("Cannot find handler chain: " +
handlerChain);
-
+
usRef.setHandlerChain(handlerChain);
}
Show replies by date