org.apache.wsif.mapping
Class WSIFMappingConventionFactory
java.lang.Object
|
+--org.apache.wsif.mapping.WSIFMappingConventionFactory
- public class WSIFMappingConventionFactory
- extends java.lang.Object
A factory to produce instances of WSIFMappingConvention
- Author:
- Owen Burroughs
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSIFMappingConventionFactory
public WSIFMappingConventionFactory()
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
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:
- Look for a system property named org.apache.wsif.mappingconvention
- Look for a property in wsif.properties called org.apache.wsif.mappingconvention
- 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
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
Copyright © 2002, 2003 Apache XML Project. All Rights Reserved.