XMLDataMapLoader (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.configuration.xml, class: XMLDataMapLoader

# Class XMLDataMapLoader

java.lang.Object
org.apache.cayenne.configuration.xml.XMLDataMapLoader

All Implemented Interfaces:
  `DataMapLoader`

public class XMLDataMapLoader extends Object implements DataMapLoader

Since:
  3.1, 4.1 moved from org.apache.cayenne.configuration package

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected HandlerFactory`
  `handlerFactory`
  `protected Provider<XMLReader>`
  `xmlReaderProvider`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `XMLDataMapLoader()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DataMap`
  `load(Resource configurationResource)`
  `protected String`
  `mapNameFromLocation(String location)`
  Helper method to guess the map name from its location.
  `void`
  `setHandlerFactory(HandlerFactory handlerFactory)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### handlerFactory

    protected HandlerFactory handlerFactory

  - ### xmlReaderProvider

    protected Provider<XMLReader> xmlReaderProvider

- ## Constructor Details

  - ### XMLDataMapLoader

    public XMLDataMapLoader()

- ## Method Details

  - ### load

    public DataMap load(Resource configurationResource) throws CayenneRuntimeException
    Specified by:
      `load` in interface `DataMapLoader`
    Throws:
      `CayenneRuntimeException`

  - ### mapNameFromLocation

    protected String mapNameFromLocation(String location)
    Helper method to guess the map name from its location.

  - ### setHandlerFactory

    public void setHandlerFactory(HandlerFactory handlerFactory)