org.sapia.util.xml.confix
Class ConfixProcessorFactory

java.lang.Object
  |
  +--org.sapia.util.xml.confix.ConfixProcessorFactory

public class ConfixProcessorFactory
extends Object

A factory that instantiates ConfixProcessorIF instances. The class of the Confix processor to use must be specified through the following property: org.sapia.xml.ConfixProcessor.

The property is searched:

  1. In the system properties.
  2. In a "sapia.properties" file in $JAVA_HOME/lib.
  3. In a "sapia.properties" file that is loaded as a resource.
If none of the methods above worked, the factory return a SAXProcessor.

Author:
JC Desrochers
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site
See Also:
SAXProcessor

Field Summary
static String DEFAULT_PROCESSOR_CLASS
          Defines the default Confix processor class.
static String PROCESSOR_CLASS_FILENAME
          Defines the properties filename that contains the processor class name.
static String PROCESSOR_CLASS_PROPERTY
          Defines the system property that defines the processor class name.
static String PROCESSOR_CLASS_RESOURCE
          Defines the resource name that contains the processor class name.
 
Constructor Summary
protected ConfixProcessorFactory(Class aClass)
          Creates a new ConfixProcessorFactory instance.
 
Method Summary
 ConfixProcessorIF createProcessor(ObjectFactoryIF aFactory)
          Factory method that creates a new ConfixProcessorIF instance.
static ConfixProcessorFactory newFactory()
          Factory method that creates a new ConfixProcessorIF instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROCESSOR_CLASS_PROPERTY

public static final String PROCESSOR_CLASS_PROPERTY
Defines the system property that defines the processor class name.

See Also:
Constant Field Values

PROCESSOR_CLASS_FILENAME

public static final String PROCESSOR_CLASS_FILENAME
Defines the properties filename that contains the processor class name.

See Also:
Constant Field Values

PROCESSOR_CLASS_RESOURCE

public static final String PROCESSOR_CLASS_RESOURCE
Defines the resource name that contains the processor class name.

See Also:
Constant Field Values

DEFAULT_PROCESSOR_CLASS

public static final String DEFAULT_PROCESSOR_CLASS
Defines the default Confix processor class.

See Also:
Constant Field Values
Constructor Detail

ConfixProcessorFactory

protected ConfixProcessorFactory(Class aClass)
Creates a new ConfixProcessorFactory instance.

Method Detail

newFactory

public static ConfixProcessorFactory newFactory()
Factory method that creates a new ConfixProcessorIF instance.

Returns:
The new ConfixProcessorIF instance.

createProcessor

public ConfixProcessorIF createProcessor(ObjectFactoryIF aFactory)
Factory method that creates a new ConfixProcessorIF instance.

Returns:
The new ConfixProcessorIF instance.


Copyright © 2002 Sapia Open Source Software. All Rights Reserved.