org.apache.cocoon.framework
Class ConfigurationFactory

java.lang.Object
  |
  +--org.apache.cocoon.framework.ConfigurationFactory

public class ConfigurationFactory
extends java.lang.Object

This class creates the configurations.

Version:
$Revision: 1.1 $ $Date: 1999/03/22 23:50:06 $
Author:
Stefano Mazzocchi

Constructor Summary
ConfigurationFactory()
           
 
Method Summary
static Configurations getConfigurations(java.lang.String file)
          Returns the configurations loading them from a file.
static Configurations getConfigurations(java.lang.String file, Configurations defaults)
          Returns the configurations loading them from a file with the given defaults.
static Configurations getConfigurations(java.lang.String file, java.lang.String resource)
          Returns the configurations loading them from a file using the internal configurations as default.
static Configurations getInternalConfigurations(java.lang.String resource)
          Returns the configurations loading them from an internal resource found in the jar achive or in the resource path (classpath)
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ConfigurationFactory

public ConfigurationFactory()
Method Detail

getInternalConfigurations

public static Configurations getInternalConfigurations(java.lang.String resource)
                                                throws java.io.IOException
Returns the configurations loading them from an internal resource found in the jar achive or in the resource path (classpath)

getConfigurations

public static Configurations getConfigurations(java.lang.String file)
                                        throws java.io.IOException
Returns the configurations loading them from a file.

getConfigurations

public static Configurations getConfigurations(java.lang.String file,
                                               Configurations defaults)
                                        throws java.io.IOException
Returns the configurations loading them from a file with the given defaults.

getConfigurations

public static Configurations getConfigurations(java.lang.String file,
                                               java.lang.String resource)
                                        throws java.io.IOException
Returns the configurations loading them from a file using the internal configurations as default.

Copyright (c) 1998 The Java Apache Project