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

public Class JarInputStreamBasedArchiveDescriptor

extends AbstractArchiveDescriptor
Class Inheritance
Imports
java.io.IOException, java.net.URL, java.util.jar.JarEntry, .JarInputStream, java.util.zip.ZipEntry, org.hibernate.boot.archive.spi.AbstractArchiveDescriptor, .ArchiveContext, .ArchiveDescriptorFactory, .ArchiveEntry, .ArchiveException, .InputStreamAccess

An ArchiveDescriptor that works on archives accessible through a JarInputStream.

Implementation Note

This is less efficient implementation than JarFileBasedArchiveDescriptor.

Authors
Emmanuel Bernard, Steve Ebersole

Constructor Summary

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

Constructs a JarInputStreamBasedArchiveDescriptor

Method Summary

Modifier and TypeMethod and Description
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

JarInputStreamBasedArchiveDescriptorback to summary
public JarInputStreamBasedArchiveDescriptor(ArchiveDescriptorFactory archiveDescriptorFactory, URL url, String entry)

Constructs a JarInputStreamBasedArchiveDescriptor

Parameters
archiveDescriptorFactory:ArchiveDescriptorFactory

The factory creating this

url:URL

The url to the JAR file

entry:String

The prefix for entries within the JAR url

Method Detail

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