1 7 package org.jboss.webservice.encoding.ser; 8 9 11 import org.jboss.axis.encoding.Deserializer; 12 import org.jboss.axis.encoding.ser.BaseDeserializerFactory; 13 import org.jboss.webservice.deployment.BeanXMLMetaData; 14 15 import javax.xml.namespace.QName ; 16 17 22 public class MetaDataBeanDeserializerFactory extends BaseDeserializerFactory 23 { 24 25 static final long serialVersionUID = -224671545135141383L; 26 27 private BeanXMLMetaData metaData; 28 29 public MetaDataBeanDeserializerFactory(Class javaType, QName xmlType) 30 { 31 super(MetaDataBeanDeserializer.class, xmlType, javaType); 32 } 33 34 public void setMetaData(BeanXMLMetaData metaData) 35 { 36 this.metaData = metaData; 37 } 38 39 protected Deserializer getSpecialized(String mechanismType) 40 { 41 return newMetaDataBeanDeserializer(); 42 } 43 44 protected Deserializer getGeneralPurpose(String mechanismType) 45 { 46 return newMetaDataBeanDeserializer(); 47 } 48 49 private MetaDataBeanDeserializer newMetaDataBeanDeserializer() 50 { 51 return new MetaDataBeanDeserializer(javaType, xmlType, metaData); 52 } 53 } 54 | Popular Tags |