Top Constructors Methods
javax.xml.rpc

pack-priv Class FactoryFinder

extends Object
Class Inheritance
Imports
java.io.InputStream, .IOException, .File, .FileInputStream, .BufferedReader, .InputStreamReader, java.util.Properties

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static Object

Returns:

the Class object of the specified message factory; may not be null
find
(String
the name of the factory to find, which is a system property
factoryId
,
String
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
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.

private static Object
newInstance(String className, ClassLoader classLoader)

Creates an instance of the specified class using the specified ClassLoader object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FactoryFinderback to summary
pack-priv FactoryFinder()

Method Detail

findback to summary
pack-priv static Object find(String factoryId, String fallbackClassName) throws ServiceException

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:String

the name of the factory to find, which is a system property

fallbackClassName:String

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:Object

the Class object of the specified message factory; may not be null

Exceptions
ServiceException:
if there is an error
newInstanceback to summary
private static Object newInstance(String className, ClassLoader classLoader) throws ServiceException

Creates an instance of the specified class using the specified ClassLoader object.

Exceptions
ServiceException:
if the given class could not be found or could not be instantiated