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