public abstract class SAAJMetaFactory extends Object
newInstancemethods defined on factories
MessageFactoryin SAAJ 1.3 defer to instances of this class to do the actual object creation. The implementations of
newInstance()methods (in SOAPFactory and MessageFactory) that existed in SAAJ 1.2 have been updated to also delegate to the SAAJMetaFactory when the SAAJ 1.2 defined lookup fails to locate the Factory implementation class name.
SAAJMetaFactory is a service provider interface and it uses similar lookup mechanism as other SAAJ factories to get actual instance:
javax.xml.soap.SAAJMetaFactoryexists then its value is assumed to be the fully qualified name of the implementation class. This phase of the look up enables per-JVM override of the SAAJ implementation.
javax.xml.soap.MetaFactoryexists then its value is assumed to be the fully qualified name of the implementation class. This property, defined by previous specifications (up to 1.3), is still supported, but it is strongly recommended to migrate to new property
Propertiesformat and typically located in the
confdirectory of the Java installation. It contains the fully qualified name of the implementation class with key
javax.xml.soap.SAAJMetaFactory. If no such property is defined, again, property with key
javax.xml.soap.MetaFactoryis used. It is strongly recommended to migrate to new property
ServiceLoaderclass, to attempt to locate and load an implementation of the service using the default loading mechanism.
There are no public methods on this class.
|Modifier and Type||Method||Description|
protected abstract MessageFactory newMessageFactory(String protocol) throws SOAPException
MessageFactoryobject for the given
protected abstract SOAPFactory newSOAPFactory(String protocol) throws SOAPException
SOAPFactoryobject for the given
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.