Examples of ArchiveDescriptor


Examples of com.sun.enterprise.deployment.interfaces.pluggable.ArchiveDescriptor

        request.setDeployedDirectory(moduleRootDirectory);
        if(request.getDescription() == null) {
            request.setDescription(archiveDeployer.getModuleDescription());
        }
        // get the descriptor processed by the archiveDeployer
        ArchiveDescriptor descriptor = archiveDeployer.prepare(
            moduleRootDirectory, getModuleScratchDirectory(moduleName)
            parentClassLoader, false);
      
        logger.log(Level.FINE, "Descriptor ="+descriptor.toString());        
        // register the descriptor with the ModulesManager
        configManager.registerExtensionDescriptor(request.getName(),
            descriptor);
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.interfaces.pluggable.ArchiveDescriptor

    public Application getExtensionDescriptor(String modId,
                           String location, boolean isStartup)
                                 throws ConfigException {
       
        // Try and get it from the map of registered descriptors
        ArchiveDescriptor descriptor =
            getRegisteredExtensionDescriptor(modId);
        if (descriptor!=null) {
            //wrap it as an Application object
            return getApplication(modId, descriptor);
         }
View Full Code Here

Examples of com.sun.enterprise.deployment.interfaces.pluggable.ArchiveDescriptor

     *
     * @throws   ConfigException  if unable to load the deployment descriptor
     */
    public ArchiveDescriptor getExtensionDescriptor(String modId,
        ClassLoader parentClassLoader) throws ConfigException {
        ArchiveDescriptor descriptor =
            getRegisteredExtensionDescriptor(modId);

        if (descriptor!=null) {
            return descriptor;
         }
View Full Code Here

Examples of com.sun.enterprise.deployment.interfaces.pluggable.ArchiveDescriptor

            ModuleDescriptor aModule = (ModuleDescriptor) modules.next();
            if(DOLUtils.getDefaultLogger().isLoggable(Level.FINE)) {
                DOLUtils.getDefaultLogger().fine("Opening sub-module " + aModule);
            }
            Descriptor descriptor = null;
            ArchiveDescriptor archiveDesc = null;
            Archivist newArchivist = null;
            AbstractArchive embeddedArchive =
                    appArchive.getEmbeddedArchive(aModule.getArchiveUri());
            if(ModuleType.WAR.equals(aModule.getModuleType())){
                // Check if this is an extension module.If there is an IOException
View Full Code Here

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

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

  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

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

  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

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
TOP
Copyright © 2018 www.massapi.com. 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.