org.apache.wsif.mapping
Class WSIFMappingConventionFactory

java.lang.Object
  extended byorg.apache.wsif.mapping.WSIFMappingConventionFactory

public class WSIFMappingConventionFactory
extends java.lang.Object

A factory to produce instances of WSIFMappingConvention

Author:
Owen Burroughs

Constructor Summary
WSIFMappingConventionFactory()
           
 
Method Summary
static WSIFMappingConvention newMappingConvention()
          Get a new MappingConvention.
static WSIFMappingConvention newMappingConvention(boolean refresh)
          Get a new WSIFMappingConvention.
static WSIFMappingConvention newMappingConvention(java.lang.String mappingConvClassName)
          Create a new instance of an implementation WSIFMappingConvention.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSIFMappingConventionFactory

public WSIFMappingConventionFactory()
Method Detail

newMappingConvention

public static WSIFMappingConvention newMappingConvention()
                                                  throws WSIFException
Get a new MappingConvention. This method is equivalent to calling newMappingConvention(false)

Returns:
A new instance of WSIFMappingConvention
Throws:
An - exception if the class cannot be found or is not an implemenation of WSIFMappingConvention
WSIFException

newMappingConvention

public static WSIFMappingConvention newMappingConvention(boolean refresh)
                                                  throws WSIFException
Get a new WSIFMappingConvention. This method allows the user to refresh the class name of the WSIFMappingConvention to return. If the flag is true or a class name has not yet to be established the class name will be looked up in the following order:
  1. Look for a system property named org.apache.wsif.mappingconvention
  2. Look for a property in wsif.properties called org.apache.wsif.mappingconvention
  3. Use the default class name - org.apache.wsif.mapping.WSIFDefaultMappingConvention
If the flag is false and a class name has already been establshed, that class name will be used.

Parameters:
refresh - A flag to indicate whether or not to reuse the class name for the WSIFMappingConvention implementation if it has already been established rather than determine it again.
Returns:
A new instance of WSIFMappingConvention
Throws:
An - exception if the class cannot be found or is not an implemenation of WSIFMappingConvention
WSIFException

newMappingConvention

public static WSIFMappingConvention newMappingConvention(java.lang.String mappingConvClassName)
                                                  throws WSIFException
Create a new instance of an implementation WSIFMappingConvention. This method will attempt to use the class name given. If the class is not an instance of WSIFMappingConvention an exception will be thrown. Calling this method will not override the class name stored by this instance of WSIFMappingConventionFactory. The class is looked up in isolation.

Parameters:
mappingConvClassName - The class name of the implementation of WSIFMappingConvention to use
Returns:
An instance of WSIFMappingConvention
Throws:
An - exception if the class cannot be found or is not an implemenation of WSIFMappingConvention
WSIFException


Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.