Class XMLProjectLoader
java.lang.Object
org.apache.cayenne.project.xml.XMLProjectLoader
- All Implemented Interfaces:
ProjectLoader
- Since:
- 4.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DataMapLoaderprotected HandlerFactoryprotected ConfigurationNameMapperprotected ProjectFileUpgraderprotected org.apache.cayenne.di.Provider<XMLReader> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoads a Project from some resource, usually an XML file found on classpath.protected Projectparse(Resource configurationResource, InputSource input) protected ProjectupgradeAndLoad(Resource configurationResource, String version) Loads a project created by an older version of Cayenne, upgrading its XML in memory.
-
Field Details
-
xmlReaderProvider
-
dataMapLoader
-
nameMapper
-
handlerFactory
-
upgrader
-
-
Constructor Details
-
XMLProjectLoader
public XMLProjectLoader()
-
-
Method Details
-
load
Description copied from interface:ProjectLoaderLoads a Project from some resource, usually an XML file found on classpath.- Specified by:
loadin interfaceProjectLoader- Throws:
ConfigurationException
-
parse
- Throws:
Exception
-
upgradeAndLoad
-