01: package org.gridsphere.portletcontainer.impl;
02:
03: import org.gridsphere.services.core.persistence.PersistenceManagerXml;
04:
05: import java.net.URL;
06:
07: public class JavaXMLBindingFactory {
08:
09: /**
10: * Returns an instance of a PersistenceManagerXML from a descriptor and mapping URL
11: *
12: * @param descriptorURL the descriptor location
13: * @param mappingURL the mapping location
14: * @return an instance of PersistenceManagerXmlImpl
15: */
16: public static PersistenceManagerXml createPersistenceManagerXml(
17: String descriptorURL, URL mappingURL) {
18: return new PersistenceManagerXmlImpl(descriptorURL, mappingURL);
19: }
20:
21: }
|