jaxg 0.1dev

org.xml.graphics.helpers
Class FactoryFinder

java.lang.Object
  extended by org.xml.graphics.helpers.FactoryFinder

public class FactoryFinder
extends java.lang.Object

FactoryFinder is responsible to find the default factory for the current environment.

Note: The code here is mostly taken from JAXP 1.1 but with JDK 1.1 and debug logging support removed.


Nested Class Summary
static class FactoryFinder.ConfigurationError
           
 
Constructor Summary
FactoryFinder()
           
 
Method Summary
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

public FactoryFinder()
Method Detail

find

public 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

jaxg 0.1dev

Copyright © 2004-2005 Jeremias Märki. All rights reserved.