Package org.hibernate.jpa.boot.archive.spi

Examples of org.hibernate.jpa.boot.archive.spi.ArchiveDescriptor


    public ArchiveEntryHandler getPackageInfoHandler();
    public ArchiveEntryHandler getFileHandler();
  }

  private ArchiveDescriptor buildArchiveDescriptor(URL url, boolean isRootUrl, ScanOptions scanOptions) {
    final ArchiveDescriptor descriptor;
    final ArchiveDescriptorInfo descriptorInfo = archiveDescriptorCache.get( url );
    if ( descriptorInfo == null ) {
      descriptor = archiveDescriptorFactory.buildArchiveDescriptor( url );
      archiveDescriptorCache.put(
          url,
View Full Code Here


  public ScanResult scan(PersistenceUnitDescriptor persistenceUnit, ScanOptions scanOptions) {
    final ResultCollector resultCollector = new ResultCollector( scanOptions );

    if ( persistenceUnit.getJarFileUrls() != null ) {
      for ( URL url : persistenceUnit.getJarFileUrls() ) {
        final ArchiveDescriptor descriptor = buildArchiveDescriptor( url, false, scanOptions );
        final ArchiveContext context = buildArchiveContext( persistenceUnit, false, resultCollector );
        descriptor.visitArchive( context );
      }
    }

    if ( persistenceUnit.getPersistenceUnitRootUrl() != null ) {
      final ArchiveDescriptor descriptor = buildArchiveDescriptor( persistenceUnit.getPersistenceUnitRootUrl(), true, scanOptions );
      final ArchiveContext context = buildArchiveContext( persistenceUnit, false, resultCollector );
      descriptor.visitArchive( context );
    }

    return ScanResultImpl.from( resultCollector );
  }
View Full Code Here

  public ScanResult scan(PersistenceUnitDescriptor persistenceUnit, ScanOptions scanOptions) {
    final ResultCollector resultCollector = new ResultCollector( scanOptions );

    if ( persistenceUnit.getJarFileUrls() != null ) {
      for ( URL url : persistenceUnit.getJarFileUrls() ) {
        final ArchiveDescriptor descriptor = buildArchiveDescriptor( url, false, scanOptions );
        final ArchiveContext context = buildArchiveContext( persistenceUnit, false, resultCollector );
        descriptor.visitArchive( context );
      }
    }

    if ( persistenceUnit.getPersistenceUnitRootUrl() != null ) {
      final ArchiveDescriptor descriptor = buildArchiveDescriptor( persistenceUnit.getPersistenceUnitRootUrl(), true, scanOptions );
      final ArchiveContext context = buildArchiveContext( persistenceUnit, true, resultCollector );
      descriptor.visitArchive( context );
    }

    return ScanResultImpl.from( resultCollector );
  }
View Full Code Here

    public ArchiveEntryHandler getPackageInfoHandler();
    public ArchiveEntryHandler getFileHandler();
  }

  private ArchiveDescriptor buildArchiveDescriptor(URL url, boolean isRootUrl, ScanOptions scanOptions) {
    final ArchiveDescriptor descriptor;
    final ArchiveDescriptorInfo descriptorInfo = archiveDescriptorCache.get( url );
    if ( descriptorInfo == null ) {
      descriptor = archiveDescriptorFactory.buildArchiveDescriptor( url );
      archiveDescriptorCache.put(
          url,
View Full Code Here

TOP

Related Classes of org.hibernate.jpa.boot.archive.spi.ArchiveDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.