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

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

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

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: 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

public Compiler(String includePath, boolean unsafe, ExtensionsRepository repository, JavaCompiler wrappedCompiler) {
  if (includePath != null) {
    includeDirs = new ArrayList<String>();
    String[] paths = includePath.split(File.pathSeparator);
    includeDirs.addAll(Arrays.asList(paths));
  }
  this.unsafe = unsafe;
  this.compiler = wrappedCompiler;
  this.stdManager = compiler.getStandardFileManager(null, null, null);
  this.repository = repository;
  this.dumpDir = System.getProperty("net.java.btrace.dumpDir", null);
  if (this.dumpDir == null) {
    try {
      File tmp = File.createTempFile("tmp", ".tst");
      this.dumpDir = tmp.getParent();
    } catch (IOException e) {
      BTraceLogger.debugPrint("*** unable to determina 'tmp' directory. dumps disabled.");
    }
  }
  if (BTraceLogger.isDebug()) {
    BTraceLogger.debugPrint("*** compiling with repository: " + repository.getExtensionsPath());
  }
}
origin: org.gridkit.3rd.btrace/core-api

  /**
   * Creates a new instance of {@linkplain ExtensionsRepository} which is a result of composition of other repositories
   * @param location Desired execution {@linkplain ExtensionsRepository.Location}
   * @param reps The repositories to wrap in composite
   * @return Returns a new instance of {@linkplain ExtensionsRepository}
   */
  public static ExtensionsRepository composite(ExtensionsRepository.Location location, ExtensionsRepository ... reps) {
    Set<String> paths = new HashSet<String>();
    StringBuilder sb = new StringBuilder();
    for(ExtensionsRepository rep : reps) {
      if (location == ExtensionsRepository.Location.BOTH || location == rep.getLocation()) {
        String ePath = rep.getExtensionsPath();
        if (ePath != null) {
          paths.add(ePath);
        }
      }
    }
    for(String path : paths) {
      if (sb.length() > 0) {
        sb.append(File.pathSeparatorChar);
      }
      sb.append(path);
    }
    return fixed(location, sb.toString());
  }
}
origin: jbachorik/btrace2

  /**
   * Creates a new instance of {@linkplain ExtensionsRepository} which is a result of composition of other repositories
   * @param location Desired execution {@linkplain ExtensionsRepository.Location}
   * @param reps The repositories to wrap in composite
   * @return Returns a new instance of {@linkplain ExtensionsRepository}
   */
  public static ExtensionsRepository composite(ExtensionsRepository.Location location, ExtensionsRepository ... reps) {
    Set<String> paths = new HashSet<String>();
    StringBuilder sb = new StringBuilder();
    for(ExtensionsRepository rep : reps) {
      if (location == ExtensionsRepository.Location.BOTH || location == rep.getLocation()) {
        String ePath = rep.getExtensionsPath();
        if (ePath != null) {
          paths.add(ePath);
        }
      }
    }
    for(String path : paths) {
      if (sb.length() > 0) {
        sb.append(File.pathSeparatorChar);
      }
      sb.append(path);
    }
    return fixed(location, sb.toString());
  }
}
origin: org.gridkit.3rd.btrace/compiler

public Compiler(String includePath, boolean unsafe, ExtensionsRepository repository, JavaCompiler wrappedCompiler) {
  if (includePath != null) {
    includeDirs = new ArrayList<String>();
    String[] paths = includePath.split(File.pathSeparator);
    includeDirs.addAll(Arrays.asList(paths));
  }
  this.unsafe = unsafe;
  this.compiler = wrappedCompiler;
  this.stdManager = compiler.getStandardFileManager(null, null, null);
  this.repository = repository;
  this.dumpDir = System.getProperty("net.java.btrace.dumpDir", null);
  if (this.dumpDir == null) {
    try {
      File tmp = File.createTempFile("tmp", ".tst");
      this.dumpDir = tmp.getParent();
    } catch (IOException e) {
      BTraceLogger.debugPrint("*** unable to determina 'tmp' directory. dumps disabled.");
    }
  }
  if (BTraceLogger.isDebug()) {
    BTraceLogger.debugPrint("*** compiling with repository: " + repository.getExtensionsPath());
  }
}
origin: jbachorik/btrace2

agentArgs += ",probeDescPath=" + probeDescPath;
if (extRepository != DEFAULT_REPOSITORY) {
  agentArgs += ",extPath=" + extRepository.getExtensionsPath();
origin: org.gridkit.3rd.btrace/client

agentArgs += ",probeDescPath=" + probeDescPath;
if (extRepository != DEFAULT_REPOSITORY) {
  agentArgs += ",extPath=" + extRepository.getExtensionsPath();
net.java.btrace.api.extensionsExtensionsRepositorygetExtensionsPath

Javadoc

Repository definition path

Popular methods of ExtensionsRepository

  • getClassLoader
    Repository's classloader with custom parent
  • getClassPath
    Calculated class-path for the extension repository
  • collectJars
  • 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

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • setScale (BigDecimal)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • String (java.lang)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JOptionPane (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm 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