net.sf.ehcache.config
Class Configurator

java.lang.Object
  extended bynet.sf.ehcache.config.Configurator

public class Configurator
extends java.lang.Object

A utility class which configures beans from XML, using reflection.

Version:
$Id: Configurator.java,v 1.5 2003/11/15 04:36:30 gregluck Exp $
Author:
Greg Luck

Constructor Summary
Configurator()
          Constructor
 
Method Summary
 void configure(java.lang.Object bean)
          Configures a bean from an XML file in the classpath.
 void configure(java.lang.Object bean, java.io.File file)
          Configures a bean from an XML file.
 void configure(java.lang.Object bean, java.net.URL url)
          Configures a bean from an XML file available as an URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configurator

public Configurator()
Constructor

Method Detail

configure

public void configure(java.lang.Object bean,
                      java.io.File file)
               throws java.lang.Exception
Configures a bean from an XML file.

Throws:
java.lang.Exception

configure

public void configure(java.lang.Object bean,
                      java.net.URL url)
               throws java.lang.Exception
Configures a bean from an XML file available as an URL.

Throws:
java.lang.Exception

configure

public void configure(java.lang.Object bean)
               throws java.lang.Exception
Configures a bean from an XML file in the classpath.

Throws:
java.lang.Exception