1 7 8 10 package org.jboss.net.axis; 11 12 import org.jboss.axis.encoding.ser.BaseDeserializerFactory; 13 14 import javax.xml.namespace.QName ; 15 import java.util.Map ; 16 17 28 29 public class ParameterizableDeserializerFactory extends BaseDeserializerFactory 30 { 31 32 36 protected Map options; 37 38 42 43 public ParameterizableDeserializerFactory(Class deserializerType, Class javaType, QName xmlType) 44 { 45 super(deserializerType, xmlType, javaType); 46 } 47 48 49 public ParameterizableDeserializerFactory(Class deserializerType, Class javaType, QName xmlType, Map options) 50 { 51 super(deserializerType, xmlType, javaType); 52 this.options = options; 53 } 54 55 59 60 protected Map getOptions() 61 { 62 return options; 63 } 64 65 66 protected void setOptions(Map options) 67 { 68 this.options = options; 69 } 70 71 72 public javax.xml.rpc.encoding.Deserializer getDeserializerAs(String mechanismType) 73 { 74 javax.xml.rpc.encoding.Deserializer deser = super.getDeserializerAs(mechanismType); 75 if (deser instanceof ParameterizableDeserializer) 76 { 77 ((ParameterizableDeserializer)deser).setOptions(options); 78 } 79 return deser; 80 } 81 82 } 83 | Popular Tags |