javax.xml.rpc
Class FactoryFinder

java.lang.Object
  |
  +--javax.xml.rpc.FactoryFinder

class FactoryFinder
extends java.lang.Object

This class is duplicated for each subpackage so keep it in sync. It is package private and therefore is not exposed as part of the JAXRPC API. This code is designed to implement the pluggability feature and is designed to both compile and run on JDK version 1.1 and later. The code also runs both as part of an unbundled jar file and when bundled as part of the JDK.


Nested Class Summary
(package private) static class FactoryFinder.ConfigurationError
           
 
Constructor Summary
(package private) FactoryFinder()
           
 
Method Summary
(package private) static java.lang.Object find(java.lang.String factoryId, java.lang.String fallbackClassName)
          Finds the implementation Class object in the specified order.
 
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,
                             java.lang.String fallbackClassName)
                      throws FactoryFinder.ConfigurationError
Finds the implementation Class object in the specified order. Main entry point.

Parameters:
factoryId - Name of the factory to find, same as a property name
fallbackClassName - Implementation class name, if nothing else is found. Use null to mean no fallback.
Returns:
Class object of factory, never null
Throws:
FactoryFinder.ConfigurationError - Package private so this code can be shared.