org.eclipse.persistence.jpa
Interface ArchiveFactory


public interface ArchiveFactory

This interface should be implemented by users that want to provide a custom way of dealing with archives that contain persistence units. An implementer of this class can be enabled by providing a System property

Author:
tware
See Also:
SystemProperties

Method Summary
 Archive createArchive(URL rootUrl)
          Return an instance of an implementer of Archive that can process the URL provided
 Archive createArchive(URL rootUrl, String descriptorLocation)
          Return an instance of an implementer of Archive that can process the URL provided This instance will allow access to the persistence descriptor associated with this archive through the getDescriptorStream() method
 

Method Detail

createArchive

Archive createArchive(URL rootUrl)
                      throws URISyntaxException,
                             IOException
Return an instance of an implementer of Archive that can process the URL provided

Throws:
URISyntaxException
IOException

createArchive

Archive createArchive(URL rootUrl,
                      String descriptorLocation)
                      throws URISyntaxException,
                             IOException
Return an instance of an implementer of Archive that can process the URL provided This instance will allow access to the persistence descriptor associated with this archive through the getDescriptorStream() method

Throws:
URISyntaxException
IOException