Top Description Constructors Methods
org.hibernate.boot.archive.internal

public Class JarFileBasedArchiveDescriptor

extends AbstractArchiveDescriptor
Class Inheritance
Imports
java.io.BufferedInputStream, .IOException, .InputStream, java.net.URISyntaxException, .URL, java.util.Enumeration, java.util.jar.JarFile, .JarInputStream, java.util.zip.ZipEntry, org.hibernate.boot.archive.spi.AbstractArchiveDescriptor, .ArchiveContext, .ArchiveDescriptorFactory, .ArchiveEntry, .ArchiveEntryHandler, .ArchiveException, .InputStreamAccess

An ArchiveDescriptor implementation leveraging the JarFile API for processing.
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public
JarFileBasedArchiveDescriptor(ArchiveDescriptorFactory
The factory creating this
archiveDescriptorFactory
,
URL
The url to the JAR file
archiveUrl
,
String
The prefix for entries within the JAR url
entry
)

Constructs a JarFileBasedArchiveDescriptor

Method Summary

Modifier and TypeMethod and Description
private JarFile
public void
visitArchive(ArchiveContext
The visitation context
context
)

Implements org.hibernate.boot.archive.spi.ArchiveDescriptor.visitArchive.

Perform visitation using the given context
Inherited from org.hibernate.boot.archive.spi.AbstractArchiveDescriptor:
buildByteBasedInputStreamAccessextractNameextractRelativeNamegetArchiveDescriptorFactorygetArchiveUrlgetEntryBasePrefixnormalizePathName

Constructor Detail

JarFileBasedArchiveDescriptorback to summary
public JarFileBasedArchiveDescriptor(ArchiveDescriptorFactory archiveDescriptorFactory, URL archiveUrl, String entry)

Constructs a JarFileBasedArchiveDescriptor

Parameters
archiveDescriptorFactory:ArchiveDescriptorFactory

The factory creating this

archiveUrl:URL

The url to the JAR file

entry:String

The prefix for entries within the JAR url

Method Detail

resolveJarFileReferenceback to summary
private JarFile resolveJarFileReference()
visitArchiveback to summary
public void visitArchive(ArchiveContext context)

Implements org.hibernate.boot.archive.spi.ArchiveDescriptor.visitArchive.

Doc from org.hibernate.boot.archive.spi.ArchiveDescriptor.visitArchive.

Perform visitation using the given context

Parameters
context:ArchiveContext

The visitation context

Annotations
@Override