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 java.lang.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.ArchiveDescriptor
buildArchiveDescriptor(java.net.URL url)
org.hibernate.boot.archive.spi.ArchiveDescriptor
buildArchiveDescriptor(java.net.URL url, java.lang.String entry)
java.net.URL
getJarURLFromURLEntry(java.net.URL url, java.lang.String entry)
java.net.URL
getURLFromPath(java.lang.String jarPath)
-
-
-
Method Detail
-
buildArchiveDescriptor
public org.hibernate.boot.archive.spi.ArchiveDescriptor buildArchiveDescriptor(java.net.URL url)
- Specified by:
buildArchiveDescriptor
in interfaceorg.hibernate.boot.archive.spi.ArchiveDescriptorFactory
-
buildArchiveDescriptor
public org.hibernate.boot.archive.spi.ArchiveDescriptor buildArchiveDescriptor(java.net.URL url, java.lang.String entry)
- Specified by:
buildArchiveDescriptor
in interfaceorg.hibernate.boot.archive.spi.ArchiveDescriptorFactory
-
getJarURLFromURLEntry
public java.net.URL getJarURLFromURLEntry(java.net.URL url, java.lang.String entry) throws java.lang.IllegalArgumentException
- Specified by:
getJarURLFromURLEntry
in interfaceorg.hibernate.boot.archive.spi.ArchiveDescriptorFactory
- Throws:
java.lang.IllegalArgumentException
-
getURLFromPath
public java.net.URL getURLFromPath(java.lang.String jarPath)
- Specified by:
getURLFromPath
in interfaceorg.hibernate.boot.archive.spi.ArchiveDescriptorFactory
-
-