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:
jakarta.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.
jakarta.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
jakarta.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 |
| 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 | |
| SAAJMetaFactory | back to summary |
|---|---|
| protected SAAJMetaFactory() Default constructor. | |
| 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
| |