1 6 7 28 package javax.xml.soap; 29 30 45 46 public abstract class SAAJMetaFactory { 47 static private final String META_FACTORY_CLASS_PROPERTY = 48 "javax.xml.soap.MetaFactory"; 49 static private final String DEFAULT_META_FACTORY_CLASS = 50 "com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl"; 51 52 73 static SAAJMetaFactory getInstance() throws SOAPException { 74 try { 75 SAAJMetaFactory instance = 76 (SAAJMetaFactory ) FactoryFinder.find( 77 META_FACTORY_CLASS_PROPERTY, 78 DEFAULT_META_FACTORY_CLASS); 79 return instance; 80 } catch (Exception e) { 81 throw new SOAPException ( 82 "Unable to create SAAJ meta-factory" + e.getMessage()); 83 } 84 } 85 86 protected SAAJMetaFactory() { } 87 88 99 protected abstract MessageFactory newMessageFactory(String protocol) 100 throws SOAPException ; 101 102 113 protected abstract SOAPFactory newSOAPFactory(String protocol) 114 throws SOAPException ; 115 } 116 | Popular Tags |