org.apache.axis2.context
Class ConfigurationContextFactory

java.lang.Object
  extended by org.apache.axis2.context.ConfigurationContextFactory

public class ConfigurationContextFactory
extends java.lang.Object


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
ConfigurationContextFactory()
           
 
Method Summary
static ConfigurationContext createBasicConfigurationContext(java.lang.String resourceName)
          Creates configuration context using resource file found in the classpath.
static ConfigurationContext createConfigurationContext(AxisConfigurator axisConfigurator)
          Creates a AxisConfiguration depending on the user requirement.
static ConfigurationContext createConfigurationContextFromFileSystem(java.lang.String path)
           
static ConfigurationContext createConfigurationContextFromFileSystem(java.lang.String path, java.lang.String axis2xml)
          To get a ConfigurationContext for given data , and underline implementation is Axis2 default impl which is file system based deployment model to create an AxisConfiguration.
static ConfigurationContext createConfigurationContextFromURIs(java.net.URL axis2xml, java.net.URL repositoy)
           
static ConfigurationContext createDefaultConfigurationContext()
          Gets the default configuration context by using Axis2.xml in the classpath
static ConfigurationContext createEmptyConfigurationContext()
          creates an empty configuration context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Constructor Detail

ConfigurationContextFactory

public ConfigurationContextFactory()
Method Detail

createConfigurationContext

public static ConfigurationContext createConfigurationContext(AxisConfigurator axisConfigurator)
                                                       throws AxisFault
Creates a AxisConfiguration depending on the user requirement. First creates an AxisConfigurator object with appropriate parameters. Depending on the implementation getAxisConfiguration(), gets the AxisConfiguration and uses it to create the ConfigurationContext.

Parameters:
axisConfigurator - : AxisConfigurator
Returns:
Returns ConfigurationContext.
Throws:
AxisFault - : If somthing goes wrong

createConfigurationContextFromFileSystem

public static ConfigurationContext createConfigurationContextFromFileSystem(java.lang.String path,
                                                                            java.lang.String axis2xml)
                                                                     throws AxisFault
To get a ConfigurationContext for given data , and underline implementation is Axis2 default impl which is file system based deployment model to create an AxisConfiguration.

Here either or both parameter can be null. So that boil down to following scenarios and it should note that parameter value should be full path , you are not allowed to give one relative to other. And these two can be located in completely different locations.

Note : rather than passing any parameters you can give them as System properties. Simple you can add following system properties before you call this.

Parameters:
path - : location of the repository
axis2xml - : location of the axis2.xml (configuration) , you can not give axis2xml relative to repository.
Returns:
Returns the built ConfigurationContext.
Throws:
AxisFault - in case of problems

createConfigurationContextFromFileSystem

public static ConfigurationContext createConfigurationContextFromFileSystem(java.lang.String path)
                                                                     throws AxisFault
Throws:
AxisFault

createConfigurationContextFromURIs

public static ConfigurationContext createConfigurationContextFromURIs(java.net.URL axis2xml,
                                                                      java.net.URL repositoy)
                                                               throws AxisFault
Throws:
AxisFault

createEmptyConfigurationContext

public static ConfigurationContext createEmptyConfigurationContext()
                                                            throws AxisFault
creates an empty configuration context.

Returns:
Returns ConfigurationContext.
Throws:
AxisFault

createDefaultConfigurationContext

public static ConfigurationContext createDefaultConfigurationContext()
                                                              throws java.lang.Exception
Gets the default configuration context by using Axis2.xml in the classpath

Returns:
Returns ConfigurationContext.
Throws:
java.lang.Exception

createBasicConfigurationContext

public static ConfigurationContext createBasicConfigurationContext(java.lang.String resourceName)
                                                            throws java.lang.Exception
Creates configuration context using resource file found in the classpath.

Returns:
Returns ConfigurationContext.
Throws:
java.lang.Exception


Copyright © 2007 Apache Web Services Project. All Rights Reserved.