Class 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 Detail

      • OsgiArchiveDescriptorFactory

        public OsgiArchiveDescriptorFactory​(org.osgi.framework.Bundle persistenceBundle)
        Creates a OsgiArchiveDescriptorFactory
        Parameters:
        persistenceBundle - The OSGi bundle being scanned
    • Method Detail

      • buildArchiveDescriptor

        public org.hibernate.boot.archive.spi.ArchiveDescriptor buildArchiveDescriptor​(URL url)
        Specified by:
        buildArchiveDescriptor in interface org.hibernate.boot.archive.spi.ArchiveDescriptorFactory
      • buildArchiveDescriptor

        public org.hibernate.boot.archive.spi.ArchiveDescriptor buildArchiveDescriptor​(URL url,
                                                                                       String entry)
        Specified by:
        buildArchiveDescriptor in interface org.hibernate.boot.archive.spi.ArchiveDescriptorFactory
      • getURLFromPath

        public URL getURLFromPath​(String jarPath)
        Specified by:
        getURLFromPath in interface org.hibernate.boot.archive.spi.ArchiveDescriptorFactory