com.sun.xml.internal.ws.spi.db.WrapperComposite Java Examples
The following examples show how to use
com.sun.xml.internal.ws.spi.db.WrapperComposite.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BodyBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #2
Source File: EndpointResponseMessageBuilder.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Packs a bunch of arguments intoa {@link WrapperComposite}. */ WrapperComposite buildWrapperComposite(Object[] methodArgs, Object returnValue) { WrapperComposite cs = new WrapperComposite(); cs.bridges = parameterBridges; cs.values = new Object[parameterBridges.length]; // fill in wrapped parameters from methodArgs for( int i=indices.length-1; i>=0; i-- ) { Object v; if (indices[i] == -1) { v = getters[i].get(returnValue); } else { v = getters[i].get(methodArgs[indices[i]]); } if(v==null) { throw new WebServiceException("Method Parameter: "+ children.get(i).getName() +" cannot be null. This is BP 1.1 R2211 violation."); } cs.values[i] = v; } return cs; }
Example #3
Source File: BodyBuilder.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #4
Source File: EndpointResponseMessageBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Packs a bunch of arguments intoa {@link WrapperComposite}. */ WrapperComposite buildWrapperComposite(Object[] methodArgs, Object returnValue) { WrapperComposite cs = new WrapperComposite(); cs.bridges = parameterBridges; cs.values = new Object[parameterBridges.length]; // fill in wrapped parameters from methodArgs for( int i=indices.length-1; i>=0; i-- ) { Object v; if (indices[i] == -1) { v = getters[i].get(returnValue); } else { v = getters[i].get(methodArgs[indices[i]]); } if(v==null) { throw new WebServiceException("Method Parameter: "+ children.get(i).getName() +" cannot be null. This is BP 1.1 R2211 violation."); } cs.values[i] = v; } return cs; }
Example #5
Source File: BodyBuilder.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #6
Source File: EndpointResponseMessageBuilder.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Packs a bunch of arguments intoa {@link WrapperComposite}. */ WrapperComposite buildWrapperComposite(Object[] methodArgs, Object returnValue) { WrapperComposite cs = new WrapperComposite(); cs.bridges = parameterBridges; cs.values = new Object[parameterBridges.length]; // fill in wrapped parameters from methodArgs for( int i=indices.length-1; i>=0; i-- ) { Object v; if (indices[i] == -1) { v = getters[i].get(returnValue); } else { v = getters[i].get(methodArgs[indices[i]]); } if(v==null) { throw new WebServiceException("Method Parameter: "+ children.get(i).getName() +" cannot be null. This is BP 1.1 R2211 violation."); } cs.values[i] = v; } return cs; }
Example #7
Source File: BodyBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #8
Source File: BodyBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Packs a bunch of arguments into a {@link WrapperComposite}. */ protected WrapperComposite buildWrapperComposite(Object[] methodArgs) { WrapperComposite cs = new WrapperComposite(); cs.bridges = parameterBridges; cs.values = new Object[parameterBridges.length]; // fill in wrapped parameters from methodArgs for( int i=indices.length-1; i>=0; i-- ) { Object arg = getters[i].get(methodArgs[indices[i]]); if(arg==null) { throw new WebServiceException("Method Parameter: "+ children.get(i).getName()+" cannot be null. This is BP 1.1 R2211 violation."); } cs.values[i] = arg; } return cs; }
Example #9
Source File: BodyBuilder.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Packs a bunch of arguments into a {@link WrapperComposite}. */ protected WrapperComposite buildWrapperComposite(Object[] methodArgs) { WrapperComposite cs = new WrapperComposite(); cs.bridges = parameterBridges; cs.values = new Object[parameterBridges.length]; // fill in wrapped parameters from methodArgs for( int i=indices.length-1; i>=0; i-- ) { Object arg = getters[i].get(methodArgs[indices[i]]); if(arg==null) { throw new WebServiceException("Method Parameter: "+ children.get(i).getName()+" cannot be null. This is BP 1.1 R2211 violation."); } cs.values[i] = arg; } return cs; }
Example #10
Source File: BodyBuilder.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #11
Source File: BodyBuilder.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Packs a bunch of arguments into a {@link WrapperComposite}. */ protected WrapperComposite buildWrapperComposite(Object[] methodArgs) { WrapperComposite cs = new WrapperComposite(); cs.bridges = parameterBridges; cs.values = new Object[parameterBridges.length]; // fill in wrapped parameters from methodArgs for( int i=indices.length-1; i>=0; i-- ) { Object arg = getters[i].get(methodArgs[indices[i]]); if(arg==null) { throw new WebServiceException("Method Parameter: "+ children.get(i).getName()+" cannot be null. This is BP 1.1 R2211 violation."); } cs.values[i] = arg; } return cs; }
Example #12
Source File: BodyBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #13
Source File: EndpointResponseMessageBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Packs a bunch of arguments intoa {@link WrapperComposite}. */ WrapperComposite buildWrapperComposite(Object[] methodArgs, Object returnValue) { WrapperComposite cs = new WrapperComposite(); cs.bridges = parameterBridges; cs.values = new Object[parameterBridges.length]; // fill in wrapped parameters from methodArgs for( int i=indices.length-1; i>=0; i-- ) { Object v; if (indices[i] == -1) { v = getters[i].get(returnValue); } else { v = getters[i].get(methodArgs[indices[i]]); } if(v==null) { throw new WebServiceException("Method Parameter: "+ children.get(i).getName() +" cannot be null. This is BP 1.1 R2211 violation."); } cs.values[i] = v; } return cs; }
Example #14
Source File: BodyBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Packs a bunch of arguments into a {@link WrapperComposite}. */ protected WrapperComposite buildWrapperComposite(Object[] methodArgs) { WrapperComposite cs = new WrapperComposite(); cs.bridges = parameterBridges; cs.values = new Object[parameterBridges.length]; // fill in wrapped parameters from methodArgs for( int i=indices.length-1; i>=0; i-- ) { Object arg = getters[i].get(methodArgs[indices[i]]); if(arg==null) { throw new WebServiceException("Method Parameter: "+ children.get(i).getName()+" cannot be null. This is BP 1.1 R2211 violation."); } cs.values[i] = arg; } return cs; }
Example #15
Source File: EndpointResponseMessageBuilder.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Packs a bunch of arguments intoa {@link WrapperComposite}. */ WrapperComposite buildWrapperComposite(Object[] methodArgs, Object returnValue) { WrapperComposite cs = new WrapperComposite(); cs.bridges = parameterBridges; cs.values = new Object[parameterBridges.length]; // fill in wrapped parameters from methodArgs for( int i=indices.length-1; i>=0; i-- ) { Object v; if (indices[i] == -1) { v = getters[i].get(returnValue); } else { v = getters[i].get(methodArgs[indices[i]]); } if(v==null) { throw new WebServiceException("Method Parameter: "+ children.get(i).getName() +" cannot be null. This is BP 1.1 R2211 violation."); } cs.values[i] = v; } return cs; }
Example #16
Source File: BodyBuilder.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #17
Source File: BodyBuilder.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Packs a bunch of arguments into a {@link WrapperComposite}. */ protected WrapperComposite buildWrapperComposite(Object[] methodArgs) { WrapperComposite cs = new WrapperComposite(); cs.bridges = parameterBridges; cs.values = new Object[parameterBridges.length]; // fill in wrapped parameters from methodArgs for( int i=indices.length-1; i>=0; i-- ) { Object arg = getters[i].get(methodArgs[indices[i]]); if(arg==null) { throw new WebServiceException("Method Parameter: "+ children.get(i).getName()+" cannot be null. This is BP 1.1 R2211 violation."); } cs.values[i] = arg; } return cs; }
Example #18
Source File: BodyBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Creates a {@link BodyBuilder} from a {@link WrapperParameter}. */ DocLit(WrapperParameter wp, SOAPVersion soapVersion, ValueGetterFactory getter) { super(wp, soapVersion, getter); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #19
Source File: BodyBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Packs a bunch of arguments into a {@link WrapperComposite}. */ protected WrapperComposite buildWrapperComposite(Object[] methodArgs) { WrapperComposite cs = new WrapperComposite(); cs.bridges = parameterBridges; cs.values = new Object[parameterBridges.length]; // fill in wrapped parameters from methodArgs for( int i=indices.length-1; i>=0; i-- ) { Object arg = getters[i].get(methodArgs[indices[i]]); if(arg==null) { throw new WebServiceException("Method Parameter: "+ children.get(i).getName()+" cannot be null. This is BP 1.1 R2211 violation."); } cs.values[i] = arg; } return cs; }
Example #20
Source File: JAXBRIContextFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private Map<TypeInfo, TypeReference> typeInfoMappings(Collection<TypeInfo> typeInfos) { Map<TypeInfo, TypeReference> map = new java.util.HashMap<TypeInfo, TypeReference>(); for (TypeInfo ti : typeInfos) { Type type = WrapperComposite.class.equals(ti.type) ? CompositeStructure.class : ti.type; TypeReference tr = new TypeReference(ti.tagName, type, ti.annotations); map.put(ti, tr); } return map; }
Example #21
Source File: JAXBRIContextFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public BindingContext newContext(BindingInfo bi) { Class[] classes = bi.contentClasses().toArray(new Class[bi.contentClasses().size()]); for (int i = 0; i < classes.length; i++) { if (WrapperComposite.class.equals(classes[i])) { classes[i] = CompositeStructure.class; } } Map<TypeInfo, TypeReference> typeInfoMappings = typeInfoMappings(bi.typeInfos()); Map<Class, Class> subclassReplacements = bi.subclassReplacements(); String defaultNamespaceRemap = bi.getDefaultNamespace(); Boolean c14nSupport = (Boolean) bi.properties().get("c14nSupport"); RuntimeAnnotationReader ar = (RuntimeAnnotationReader) bi.properties().get("com.sun.xml.internal.bind.v2.model.annotation.RuntimeAnnotationReader"); JAXBContextFactory jaxbContextFactory = (JAXBContextFactory) bi.properties().get(JAXBContextFactory.class.getName()); try { JAXBRIContext context = (jaxbContextFactory != null) ? jaxbContextFactory.createJAXBContext( bi.getSEIModel(), toList(classes), toList(typeInfoMappings.values())) : ContextFactory.createContext( classes, typeInfoMappings.values(), subclassReplacements, defaultNamespaceRemap, (c14nSupport != null) ? c14nSupport : false, ar, false, false, false); return new JAXBRIContextWrapper(context, typeInfoMappings); } catch (Exception e) { throw new DatabindingException(e); } }
Example #22
Source File: WrapperParameter.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override void fillTypes(List<TypeInfo> types) { super.fillTypes(types); if(WrapperComposite.class.equals(getTypeInfo().type)) { for (ParameterImpl p : wrapperChildren) p.fillTypes(types); } // if(getParent().getBinding().isRpcLit()) { // // for rpc/lit, we need to individually marshal/unmarshal wrapped values, // // so their TypeReference needs to be collected //// assert getTypeReference().type==CompositeStructure.class; // for (ParameterImpl p : wrapperChildren) // p.fillTypes(types); // } }
Example #23
Source File: JAXBRIContextWrapper.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public XMLBridge createBridge(TypeInfo ti) { TypeReference tr = typeRefs.get(ti); com.sun.xml.internal.bind.api.Bridge b = context.createBridge(tr); return WrapperComposite.class.equals(ti.type) ? new WrapperBridge(this, b) : new BridgeWrapper(this, b); }
Example #24
Source File: JAXBRIContextWrapper.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override public XMLBridge createBridge(TypeInfo ti) { TypeReference tr = typeRefs.get(ti); com.sun.xml.internal.bind.api.Bridge b = context.createBridge(tr); return WrapperComposite.class.equals(ti.type) ? new WrapperBridge(this, b) : new BridgeWrapper(this, b); }
Example #25
Source File: EndpointResponseMessageBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Creates a {@link EndpointResponseMessageBuilder} from a {@link WrapperParameter}. */ public DocLit(WrapperParameter wp, SOAPVersion soapVersion) { super(wp, soapVersion); bindingContext = wp.getOwner().getBindingContext(); wrapper = (Class)wp.getXMLBridge().getTypeInfo().type; dynamicWrapper = WrapperComposite.class.equals(wrapper); children = wp.getWrapperChildren(); parameterBridges = new XMLBridge[children.size()]; accessors = new PropertyAccessor[children.size()]; for( int i=0; i<accessors.length; i++ ) { ParameterImpl p = children.get(i); QName name = p.getName(); if (dynamicWrapper) { parameterBridges[i] = children.get(i).getInlinedRepeatedElementBridge(); if (parameterBridges[i] == null) parameterBridges[i] = children.get(i).getXMLBridge(); } else { try { accessors[i] = (dynamicWrapper) ? null : p.getOwner().getBindingContext().getElementPropertyAccessor( wrapper, name.getNamespaceURI(), name.getLocalPart() ); } catch (JAXBException e) { throw new WebServiceException( // TODO: i18n wrapper+" do not have a property of the name "+name,e); } } } }
Example #26
Source File: RuntimeModeler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private Class getResponseWrapperClass(String className, Method method, QName resElemName) { ClassLoader loader = (classLoader == null) ? Thread.currentThread().getContextClassLoader() : classLoader; try { return loader.loadClass(className); } catch (ClassNotFoundException e) { if (noWrapperGen()) return WrapperComposite.class; logger.fine("Dynamically creating response wrapper bean Class " + className); return WrapperBeanGenerator.createResponseWrapperBean(className, method, resElemName, loader); } }
Example #27
Source File: RuntimeModeler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private Class getRequestWrapperClass(String className, Method method, QName reqElemName) { ClassLoader loader = (classLoader == null) ? Thread.currentThread().getContextClassLoader() : classLoader; try { return loader.loadClass(className); } catch (ClassNotFoundException e) { if (noWrapperGen()) return WrapperComposite.class; logger.fine("Dynamically creating request wrapper Class " + className); return WrapperBeanGenerator.createRequestWrapperBean(className, method, reqElemName, loader); } }
Example #28
Source File: WrapperParameter.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override void fillTypes(List<TypeInfo> types) { super.fillTypes(types); if(WrapperComposite.class.equals(getTypeInfo().type)) { for (ParameterImpl p : wrapperChildren) p.fillTypes(types); } // if(getParent().getBinding().isRpcLit()) { // // for rpc/lit, we need to individually marshal/unmarshal wrapped values, // // so their TypeReference needs to be collected //// assert getTypeReference().type==CompositeStructure.class; // for (ParameterImpl p : wrapperChildren) // p.fillTypes(types); // } }
Example #29
Source File: WrapperBridge.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
static CompositeStructure convert(Object o) { WrapperComposite w = (WrapperComposite) o; CompositeStructure cs = new CompositeStructure(); cs.values = w.values; cs.bridges = new Bridge[w.bridges.length]; for (int i = 0; i < cs.bridges.length; i++) { cs.bridges[i] = ((BridgeWrapper) w.bridges[i]).getBridge(); } return cs; }
Example #30
Source File: JAXBRIContextWrapper.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public XMLBridge createBridge(TypeInfo ti) { TypeReference tr = typeRefs.get(ti); com.sun.xml.internal.bind.api.Bridge b = context.createBridge(tr); return WrapperComposite.class.equals(ti.type) ? new WrapperBridge(this, b) : new BridgeWrapper(this, b); }