Tabnine Logo
EARBasedPersistenceHelper$EARLibraryPURootScanner
Code IndexAdd Tabnine to your IDE (free)

How to use
EARBasedPersistenceHelper$EARLibraryPURootScanner
in
com.sun.enterprise.deployment.archivist

Best Java code snippets using com.sun.enterprise.deployment.archivist.EARBasedPersistenceHelper$EARLibraryPURootScanner (Showing top 2 results out of 315)

origin: org.glassfish.main.deployment/dol

/**
 * Adds candidate persistence archives from the EAR's library directory
 * and, if selected, from the top-level.
 * @param earArchive ReadableArchive for the EAR
 * @param app application's descriptor
 * @param includeTopLevel whether or not to include top-level JARs for scanning
 * @param probablePersistentArchives map to which new candidates will be added
 */
protected static void addLibraryAndTopLevelCandidates(final ReadableArchive earArchive,
    final Application app,
    final boolean includeTopLevel,
    final Map<String,ReadableArchive> probablePersistentArchives) {
  //Get probable archives from root of the ear
  if (includeTopLevel) {
    SubArchivePURootScanner earRootScanner = new EARTopLevelJARPURootScanner(app);
    probablePersistentArchives.putAll(
        PersistenceArchivist.getProbablePersistenceRoots(earArchive, earRootScanner));
  }
  //Geather all jars in lib of ear
  SubArchivePURootScanner libPURootScannerScanner = new EARLibraryPURootScanner(app);
  probablePersistentArchives.putAll(
      PersistenceArchivist.getProbablePersistenceRoots(earArchive, libPURootScannerScanner));
}
origin: org.glassfish.deployment/dol

/**
 * Adds candidate persistence archives from the EAR's library directory
 * and, if selected, from the top-level.
 * @param earArchive ReadableArchive for the EAR
 * @param app application's descriptor
 * @param includeTopLevel whether or not to include top-level JARs for scanning
 * @param probablePersistentArchives map to which new candidates will be added
 */
protected static void addLibraryAndTopLevelCandidates(final ReadableArchive earArchive,
    final Application app,
    final boolean includeTopLevel,
    final Map<String,ReadableArchive> probablePersistentArchives) {
  //Get probable archives from root of the ear
  if (includeTopLevel) {
    SubArchivePURootScanner earRootScanner = new EARTopLevelJARPURootScanner(app);
    probablePersistentArchives.putAll(
        PersistenceArchivist.getProbablePersistenceRoots(earArchive, earRootScanner));
  }
  //Geather all jars in lib of ear
  SubArchivePURootScanner libPURootScannerScanner = new EARLibraryPURootScanner(app);
  probablePersistentArchives.putAll(
      PersistenceArchivist.getProbablePersistenceRoots(earArchive, libPURootScannerScanner));
}
com.sun.enterprise.deployment.archivistEARBasedPersistenceHelper$EARLibraryPURootScanner

Javadoc

Allows scanning of library JARs in an EAR.

This implementation correctly handles the semantics of the element (and its absence) from the descriptor. That is, if the element is missing use the default value "/lib." If the element is present and non-null, use it. If the element is present and empty then no library directory exists in the application.

Most used methods

  • <init>
    Creates a new instance of the scanner, using the specified Application descriptor.

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now