private static synchronized Object createNamespaceWrapper(Map<String, String> map) { ASMHelper helper = new ASMHelper(); String className = "org.apache.cxf.jaxb.NamespaceMapperInternal"; Class<?> cls = helper.findClass(className, JAXBUtils.class); if (cls == null) { ClassWriter cw = helper.createClassWriter(); if (cw == null) { return null; } cls = createNamespaceWrapperInternal(helper, cw); } try { return cls.getConstructor(Map.class).newInstance(map); } catch (Exception e) { return null; } } private static Class<?> createNamespaceWrapperInternal(ASMHelper helper, ClassWriter cw) {
String className = "org.apache.cxf.jaxb.NamespaceMapper"; className += postFix; Class<?> cls = helper.findClass(className, JAXBUtils.class); Throwable t = null; if (cls == null) {
String className = "org.apache.cxf.jaxb.NamespaceMapper"; className += postFix; Class<?> cls = helper.findClass(className, JAXBUtils.class); if (cls == null) { try {
String className = "org.apache.cxf.jaxb.NamespaceMapper"; className += postFix; Class<?> cls = helper.findClass(className, JAXBUtils.class); Throwable t = null; if (cls == null) {
String className = "org.apache.cxf.jaxb.NamespaceMapper"; className += postFix; Class<?> cls = helper.findClass(className, JAXBUtils.class); if (cls == null) { try {
newClassName = periodToSlashes(newClassName); Class<?> cls = super.findClass(newClassName.replace('/', '.'), wrapperType); while (cls != null) { try { newClassName = newClassName.replaceAll("\\$", "."); newClassName = periodToSlashes(newClassName); cls = super.findClass(newClassName.replace('/', '.'), wrapperType); } else { return helper;
newClassName = periodToSlashes(newClassName); Class<?> cls = super.findClass(newClassName.replace('/', '.'), bean); if (cls == null) { ClassWriter cw = createClassWriter();
newClassName = periodToSlashes(newClassName); Class<?> cls = super.findClass(newClassName.replace('/', '.'), bean); if (cls == null) { ClassWriter cw = createClassWriter();
String className = "org.apache.cxf.jaxb.EclipseNamespaceMapper"; String slashedName = "org/apache/cxf/jaxb/EclipseNamespaceMapper"; Class<?> cls = helper.findClass(className, JAXBUtils.class);
Class<?> extClass = helper.findClass(className + "Extensibility", loader); if (extClass != null) { return extClass;
String className = "org.apache.cxf.jaxb.EclipseNamespaceMapper"; String slashedName = "org/apache/cxf/jaxb/EclipseNamespaceMapper"; Class<?> cls = helper.findClass(className, JAXBUtils.class);
String className = "org.apache.cxf.jaxb.EclipseNamespaceMapper"; String slashedName = "org/apache/cxf/jaxb/EclipseNamespaceMapper"; Class<?> cls = helper.findClass(className, JAXBUtils.class);
String className = "org.apache.cxf.jaxb.EclipseNamespaceMapper"; String slashedName = "org/apache/cxf/jaxb/EclipseNamespaceMapper"; Class<?> cls = helper.findClass(className, JAXBUtils.class);