SAAJMetaFactory (Java EE 5)

Java EE API


javax.xml.soap Class SAAJMetaFactory

java.lang.Object
  extended by javax.xml.soap.SAAJMetaFactory

public abstract class SAAJMetaFactory
extends Object


SAAJ API 中定义的工厂实现类的访问点。SAAJ 1.3 中的工厂上定义的所有 newInstance 方法都要此类实例来创建实际对象。当 SAAJ 1.2 定义的查询无法定位 Factory 实现类名称时,存在于 SAAJ 1.2 中的 newInstance() 方法(SOAPFactory 和 MessageFactory 中)的实现被更新为(并委派给)SAAJMetaFactory。

SAAJMetaFactory 是一个服务提供者接口。在此类上没有 public 方法。

英文文档:

The access point for the implementation classes of the factories defined in the SAAJ API. All of the newInstance methods defined on factories in 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. There are no public methods on this class.

Since:
SAAJ 1.3
Author:
SAAJ RI Development Team

Constructor Summary
protected
 
Method Summary
protected abstract  MessageFactory
protected abstract  SOAPFactory
 
Methods inherited from class java.lang.Object
 

Constructor Detail

protected SAAJMetaFactory()
英文文档:

SAAJMetaFactory

protected SAAJMetaFactory()
Method Detail

abstract protected MessageFactory newMessageFactory(String protocol) throws SOAPException
创建给定 String 协议的 MessageFactory 对象。
protocol 指示该协议的 String
ThrowsSOAPException: 如果在创建 MessageFactory 时出现错误
See also SOAP_1_1_PROTOCOL, SOAP_1_2_PROTOCOL, DYNAMIC_SOAP_PROTOCOL
英文文档:

newMessageFactory

protected abstract MessageFactory newMessageFactory(String protocol)
                                             throws SOAPException
Creates a MessageFactory object for the given String protocol.

Parameters:
protocol - a String indicating the protocol
Throws:
SOAPException - if there is an error in creating the MessageFactory
See Also:
SOAPConstants.SOAP_1_1_PROTOCOL, SOAPConstants.SOAP_1_2_PROTOCOL, SOAPConstants.DYNAMIC_SOAP_PROTOCOL

abstract protected SOAPFactory newSOAPFactory(String protocol) throws SOAPException
创建给定 String 协议的 SOAPFactory 对象。
protocol 指示该协议的 String
ThrowsSOAPException: 如果在创建 SOAPFactory 时出现错误
See also SOAP_1_1_PROTOCOL, SOAP_1_2_PROTOCOL, DYNAMIC_SOAP_PROTOCOL
英文文档:

newSOAPFactory

protected abstract SOAPFactory newSOAPFactory(String protocol)
                                       throws SOAPException
Creates a SOAPFactory object for the given String protocol.

Parameters:
protocol - a String indicating the protocol
Throws:
SOAPException - if there is an error in creating the SOAPFactory
See Also:
SOAPConstants.SOAP_1_1_PROTOCOL, SOAPConstants.SOAP_1_2_PROTOCOL, SOAPConstants.DYNAMIC_SOAP_PROTOCOL


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!