org.apache.axis.configuration
Class FileProvider

java.lang.Object
  |
  +--org.apache.axis.configuration.FileProvider
All Implemented Interfaces:
ConfigurationProvider

public class FileProvider
extends java.lang.Object
implements ConfigurationProvider

A simple ConfigurationProvider that uses the Admin class to read + write XML files.

Author:
Glen Daniels (gdaniels@macromedia.com)

Field Summary
protected  java.util.Properties props
           
protected  java.lang.String sep
           
 
Constructor Summary
FileProvider(java.lang.String filename)
          Constructor which accesses a file in the current directory of the engine.
FileProvider(java.lang.String basepath, java.lang.String filename)
          Constructor which accesses a file relative to a specific base path.
 
Method Summary
 void configureEngine(AxisEngine engine)
          Configure this AxisEngine using whatever data source we have.
protected  void loadProperties(AxisEngine engine)
           
 void writeEngineConfig(AxisEngine engine)
          Read the configuration from an engine, and store it somehow.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sep

protected java.lang.String sep

props

protected java.util.Properties props
Constructor Detail

FileProvider

public FileProvider(java.lang.String filename)
Constructor which accesses a file in the current directory of the engine.

FileProvider

public FileProvider(java.lang.String basepath,
                    java.lang.String filename)
Constructor which accesses a file relative to a specific base path.
Method Detail

configureEngine

public void configureEngine(AxisEngine engine)
                     throws java.lang.Exception
Description copied from interface: ConfigurationProvider
Configure this AxisEngine using whatever data source we have.
Specified by:
configureEngine in interface ConfigurationProvider
Following copied from interface: org.apache.axis.ConfigurationProvider
Parameters:
engine - the AxisEngine we'll deploy state to
Throws:
Exeption - if there was a problem

writeEngineConfig

public void writeEngineConfig(AxisEngine engine)
                       throws java.lang.Exception
Description copied from interface: ConfigurationProvider
Read the configuration from an engine, and store it somehow.
Specified by:
writeEngineConfig in interface ConfigurationProvider
Following copied from interface: org.apache.axis.ConfigurationProvider
Parameters:
engine - the AxisEngine from which to read state.
Throws:
java.lang.Exception - if there was a problem

loadProperties

protected void loadProperties(AxisEngine engine)


Copyright © 2001 Apache XML Project. All Rights Reserved.