newInstance methods defined on factories SOAPFactory and
MessageFactory in SAAJ 1.4 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.SAAJMetaFactory exists 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.MetaFactory exists 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
javax.xml.soap.SAAJMetaFactory.
java.util.Properties format
and typically located in the conf directory 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.MetaFactory is used. It is strongly recommended to migrate to
new property javax.xml.soap.SAAJMetaFactory.
java.util.ServiceLoader class,
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 | Field and Description |
|---|---|
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static SAAJMetaFactory | Returns: a concreteSAAJMetaFactory objectCreates a new instance of a concrete |
| protected abstract MessageFactory | Returns: aMessageFactory, not nulla protocol)String indicating the protocolCreates a |
| protected abstract SOAPFactory | Returns: aSOAPFactory, not nulla protocol)String indicating the protocolCreates a |
| DEFAULT_META_FACTORY_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_META_FACTORY_CLASS | |
| META_FACTORY_DEPRECATED_CLASS_PROPERTY | back to summary |
|---|---|
| private static final String META_FACTORY_DEPRECATED_CLASS_PROPERTY | |
| SAAJMetaFactory | back to summary |
|---|---|
| protected SAAJMetaFactory() | |
| getInstance | back to summary |
|---|---|
| pack-priv static SAAJMetaFactory getInstance() throws SOAPException Creates a new instance of a concrete
| |
| newMessageFactory | back to summary |
|---|---|
| protected abstract MessageFactory newMessageFactory(String protocol) throws SOAPException Creates a
| |
| newSOAPFactory | back to summary |
|---|---|
| protected abstract SOAPFactory newSOAPFactory(String protocol) throws SOAPException Creates a
| |