Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.xml.soap
Class FactoryFinder  view FactoryFinder download FactoryFinder.java

java.lang.Object
  extended byjavax.xml.soap.FactoryFinder

class FactoryFinder
extends java.lang.Object

This class is used to locate factory classes for javax.xml.soap. It has package scope since it is not part of JAXM and should not be accessed from other packages.


Constructor Summary
(package private) FactoryFinder()
           
 
Method Summary
(package private) static java.lang.Object find(java.lang.String factoryPropertyName, java.lang.String defaultFactoryClassName)
          Instantiates a factory object given the factory's property name and the default class name.
private static java.io.InputStream getResource(java.lang.String factoryResource)
          Returns an input stream for the specified resource.
private static java.lang.Object newInstance(java.lang.String factoryClassName)
          instantiates an object go the given classname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryFinder

FactoryFinder()
Method Detail

newInstance

private static java.lang.Object newInstance(java.lang.String factoryClassName)
                                     throws SOAPException
instantiates an object go the given classname.


find

static java.lang.Object find(java.lang.String factoryPropertyName,
                             java.lang.String defaultFactoryClassName)
                      throws SOAPException
Instantiates a factory object given the factory's property name and the default class name.


getResource

private static java.io.InputStream getResource(java.lang.String factoryResource)
Returns an input stream for the specified resource.

This method will firstly try ClassLoader.getSystemResourceAsStream() then the class loader of the current thread with getResourceAsStream() and finally attempt getResourceAsStream() on FactoryFinder.class.getClassLoader().