EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

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

See Also:
SystemProperties
Author:
tware

Method Summary
 Archive createArchive(java.net.URL rootUrl, java.util.Map properties)
          Return an instance of an implementer of Archive that can process the URL provided
 Archive createArchive(java.net.URL rootUrl, java.lang.String descriptorLocation, java.util.Map properties)
          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(java.net.URL rootUrl,
                      java.util.Map properties)
                      throws java.net.URISyntaxException,
                             java.io.IOException
Return an instance of an implementer of Archive that can process the URL provided

Throws:
java.net.URISyntaxException
java.io.IOException

createArchive

Archive createArchive(java.net.URL rootUrl,
                      java.lang.String descriptorLocation,
                      java.util.Map properties)
                      throws java.net.URISyntaxException,
                             java.io.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:
java.net.URISyntaxException
java.io.IOException

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference