javax.xml.soap
Class FactoryFinder

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

 class FactoryFinder
extends java.lang.Object


Constructor Summary
FactoryFinder()
           
 
Method Summary
(package private) static java.lang.Object find(java.lang.String factoryId)
          Finds the implementation Class object for the given factory name, or null if that fails.
(package private) static java.lang.Object find(java.lang.String factoryId, java.lang.String fallbackClassName)
          Finds the implementation Class object for the given factory name, or if that fails, finds the Class object for the given fallback class name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryFinder

FactoryFinder()
Method Detail

find

static java.lang.Object find(java.lang.String factoryId)
                      throws SOAPException
Finds the implementation Class object for the given factory name, or null if that fails.

This method is package private so that this code can be shared.

Parameters:
factoryId - the name of the factory to find, which is a system property
Returns:
the Class object of the specified message factory; or null
Throws:
SOAPException - if there is a SOAP error

find

static java.lang.Object find(java.lang.String factoryId,
                             java.lang.String fallbackClassName)
                      throws SOAPException
Finds the implementation Class object for the given factory name, or if that fails, finds the Class object for the given fallback class name. The arguments supplied must be used in order. If using the first argument is successful, the second one will not be used.

This method is package private so that this code can be shared.

Parameters:
factoryId - the name of the factory to find, which is a system property
fallbackClassName - the implementation class name, which is to be used only if nothing else is found; null to indicate that there is no fallback class name
Returns:
the Class object of the specified message factory; may not be null
Throws:
SOAPException - if there is a SOAP error