Tabnine Logo
ExtensionsRepository.collectJars
Code IndexAdd Tabnine to your IDE (free)

How to use
collectJars
method
in
net.java.btrace.api.extensions.ExtensionsRepository

Best Java code snippets using net.java.btrace.api.extensions.ExtensionsRepository.collectJars (Showing top 4 results out of 315)

origin: org.gridkit.3rd.btrace/core-api

private List<File> getExtensionFiles() {
  extensionJarsLock.readLock().lock();
  List<File> jars = extensionJarsRef.get();
  if (jars == null) {
    try {
      extensionJarsLock.readLock().unlock();
      extensionJarsLock.writeLock().lock();
      jars = extensionJarsRef.get();
      if (jars == null) {
        jars = new ArrayList<File>();
        String extPath = getExtensionsPath();
        if (extPath != null) {
          StringTokenizer st = new StringTokenizer(extPath, File.pathSeparator);
          while (st.hasMoreTokens()) {
            collectJars(new File(st.nextToken()), jars);
          }
        }
        extensionJarsRef.set(jars);
        return jars;
      }
    } finally {
      extensionJarsLock.writeLock().unlock();
    }
  } else {
    extensionJarsLock.readLock().unlock();
  }
  return jars;
}

origin: jbachorik/btrace2

private List<File> getExtensionFiles() {
  extensionJarsLock.readLock().lock();
  List<File> jars = extensionJarsRef.get();
  if (jars == null) {
    try {
      extensionJarsLock.readLock().unlock();
      extensionJarsLock.writeLock().lock();
      jars = extensionJarsRef.get();
      if (jars == null) {
        jars = new ArrayList<File>();
        String extPath = getExtensionsPath();
        if (extPath != null) {
          StringTokenizer st = new StringTokenizer(extPath, File.pathSeparator);
          while (st.hasMoreTokens()) {
            collectJars(new File(st.nextToken()), jars);
          }
        }
        extensionJarsRef.set(jars);
        return jars;
      }
    } finally {
      extensionJarsLock.writeLock().unlock();
    }
  } else {
    extensionJarsLock.readLock().unlock();
  }
  return jars;
}

origin: jbachorik/btrace2

if (files != null) {
  for(File f : files) {
    collectJars(f, jars);
origin: org.gridkit.3rd.btrace/core-api

if (files != null) {
  for(File f : files) {
    collectJars(f, jars);
net.java.btrace.api.extensionsExtensionsRepositorycollectJars

Popular methods of ExtensionsRepository

  • getClassLoader
    Repository's classloader with custom parent
  • getClassPath
    Calculated class-path for the extension repository
  • getExtensionsPath
    Repository definition path
  • getExtensionFiles
  • getExtensionURLs
    Lists the URLs of all the extensions known to the repository
  • getLocation
  • getRequestedPrivileges
  • isExtensionAvailable
    Checks for an extension availability
  • listExtensions
    Lists all the extensions known to the repository
  • loadExtension
    Loads an extension by name

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Github Copilot alternatives
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