Author: amilas
Date: Wed Jan 5 05:55:47 2011
New Revision: 1055302
URL: http://svn.apache.org/viewvc?rev=1055302&view=rev
Log:
use the efficient resolve Qname method
Modified:
axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Modified:
axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java?rev=1055302&r1=1055301&r2=1055302&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
(original)
+++
axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Wed Jan 5 05:55:47 2011
@@ -335,19 +335,7 @@ public class BeanUtil {
// to get the type table.
if (messageContext != null) {
AxisService axisService = messageContext.getAxisService();
- QName typeQName = null;
- if (instanceTypeName.indexOf(":") > -1) {
- String prefix = instanceTypeName.substring(0,
instanceTypeName.indexOf(":"));
- for (Iterator namespaceIter =
beanElement.getAllDeclaredNamespaces(); namespaceIter.hasNext();) {
- OMNamespace omNamespace = (OMNamespace)
namespaceIter.next();
- if (omNamespace.getPrefix().equals(prefix)) {
- typeQName = new
QName(omNamespace.getNamespaceURI(),
instanceTypeName.substring(instanceTypeName.indexOf(":") + 1));
- }
- }
- } else {
- typeQName = new QName(instanceTypeName);
- }
-
+ QName typeQName =
beanElement.resolveQName(instanceTypeName);
TypeTable typeTable = axisService.getTypeTable();
String className =
typeTable.getClassNameForQName(typeQName);
if (className != null) {