com.ail.core.xmlbinding
Class CastorMappingLoader
java.lang.Object
com.ail.core.xmlbinding.CastorMappingLoader
public class CastorMappingLoader
- extends java.lang.Object
The methods defined in this class are shared by the Castor ToxML and FromXML services.
- Version:
- $Revision$
- Author:
- $Author$
|
Method Summary |
static org.exolab.castor.xml.XMLClassDescriptorResolver |
fetchClassResolver(XMLMapping argsMappingInOut)
Fetch a class resolver based on the mappings supplied: by default in CastorBaseMapping.xml; and per caller as
specified in the argument. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CastorMappingLoader
public CastorMappingLoader()
fetchClassResolver
public static org.exolab.castor.xml.XMLClassDescriptorResolver fetchClassResolver(XMLMapping argsMappingInOut)
throws org.exolab.castor.mapping.MappingException,
java.io.IOException
- Fetch a class resolver based on the mappings supplied: by default in CastorBaseMapping.xml; and per caller as
specified in the argument. Building a resolver is a reasonably cycle consuming activity, so the method saves
the resolved back onto the XMLMapping argument provided. If the caller provides an XMLMapping which already
contains a resolver, that resolver is simply returned.
The expectation is that the caller will cache the instance of XMLMapping that it passes in and use it again
in future calls to this method.
- Parameters:
argsMappingInOut -
- Returns:
- A resolver for use with castor's marshaller and unmarshaller.
- Throws:
org.exolab.castor.mapping.MappingException
java.io.IOException