Package org.hibernate.osgi
Class OsgiArchiveDescriptorFactory
- java.lang.Object
-
- org.hibernate.osgi.OsgiArchiveDescriptorFactory
-
- All Implemented Interfaces:
org.hibernate.boot.archive.spi.ArchiveDescriptorFactory
public class OsgiArchiveDescriptorFactory extends Object implements org.hibernate.boot.archive.spi.ArchiveDescriptorFactory
ArchiveDescriptorFactory implementation for OSGi environments
-
-
Constructor Summary
Constructors Constructor Description OsgiArchiveDescriptorFactory(org.osgi.framework.Bundle persistenceBundle)Creates a OsgiArchiveDescriptorFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.boot.archive.spi.ArchiveDescriptorbuildArchiveDescriptor(URL url)org.hibernate.boot.archive.spi.ArchiveDescriptorbuildArchiveDescriptor(URL url, String entry)URLgetJarURLFromURLEntry(URL url, String entry)URLgetURLFromPath(String jarPath)
-
-
-
Method Detail
-
buildArchiveDescriptor
public org.hibernate.boot.archive.spi.ArchiveDescriptor buildArchiveDescriptor(URL url)
- Specified by:
buildArchiveDescriptorin interfaceorg.hibernate.boot.archive.spi.ArchiveDescriptorFactory
-
buildArchiveDescriptor
public org.hibernate.boot.archive.spi.ArchiveDescriptor buildArchiveDescriptor(URL url, String entry)
- Specified by:
buildArchiveDescriptorin interfaceorg.hibernate.boot.archive.spi.ArchiveDescriptorFactory
-
getJarURLFromURLEntry
public URL getJarURLFromURLEntry(URL url, String entry) throws IllegalArgumentException
- Specified by:
getJarURLFromURLEntryin interfaceorg.hibernate.boot.archive.spi.ArchiveDescriptorFactory- Throws:
IllegalArgumentException
-
-