Codota Logo
ImplHandler$ImplThreadLocal.get
Code IndexAdd Codota to your IDE (free)

How to use
get
method
in
com.jme3.asset.ImplHandler$ImplThreadLocal

Best Java code snippets using com.jme3.asset.ImplHandler$ImplThreadLocal.get (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Attempts to locate the given resource name.
 * @param key The full name of the resource.
 * @return The AssetInfo containing resource information required for
 * access, or null if not found.
 */
public AssetInfo tryLocate(AssetKey key){
  if (locatorsList.isEmpty()){
    logger.warning("There are no locators currently"+
            " registered. Use AssetManager."+
            "registerLocator() to register a"+
            " locator.");
    return null;
  }
  
  for (ImplThreadLocal<AssetLocator> local : locatorsList){
    AssetInfo info = local.get().locate(assetManager, key);
    if (info != null) {
      return info;
    }
  }
  
  return null;
}
origin: jMonkeyEngine/jmonkeyengine

/**
 * Returns the AssetLoader registered for the given extension
 * of the current thread.
 * @return AssetLoader registered with addLoader.
 */
public AssetLoader aquireLoader(AssetKey key){
  // No need to synchronize() against map, its concurrent
  ImplThreadLocal local = extensionToLoaderMap.get(key.getExtension());
  if (local == null){
    throw new AssetLoadException("No loader registered for type \"" +
                   key.getExtension() + "\"");
  }
  return (AssetLoader) local.get();
}

origin: info.projectkyoto/mms-engine

/**
 * Returns the AssetLoader registered for the given extension
 * of the current thread.
 * @return AssetLoader registered with addLoader.
 */
public AssetLoader aquireLoader(AssetKey key){
  synchronized (loaders){
    ImplThreadLocal local = loaders.get(key.getExtension());
    if (local != null){
      AssetLoader loader = (AssetLoader) local.get();
      return loader;
    }
    return null;
  }
}
origin: org.jmonkeyengine/jme3-core

/**
 * Returns the AssetLoader registered for the given extension
 * of the current thread.
 * @return AssetLoader registered with addLoader.
 */
public AssetLoader aquireLoader(AssetKey key){
  // No need to synchronize() against map, its concurrent
  ImplThreadLocal local = extensionToLoaderMap.get(key.getExtension());
  if (local == null){
    throw new AssetLoadException("No loader registered for type \"" +
                   key.getExtension() + "\"");
  }
  return (AssetLoader) local.get();
}

origin: info.projectkyoto/mms-engine

/**
 * Attempts to locate the given resource name.
 * @param name The full name of the resource.
 * @return The AssetInfo containing resource information required for
 * access, or null if not found.
 */
public AssetInfo tryLocate(AssetKey key){
  synchronized (genericLocators){
    if (genericLocators.size() == 0)
      return null;
    for (ImplThreadLocal local : genericLocators){
      AssetLocator locator = (AssetLocator) local.get();
      if (local.getPath() != null){
        locator.setRootPath((String) local.getPath());
      }
      AssetInfo info = locator.locate(owner, key);
      if (info != null)
        return info;
    }
  }
  return null;
}
origin: org.jmonkeyengine/jme3-core

/**
 * Attempts to locate the given resource name.
 * @param key The full name of the resource.
 * @return The AssetInfo containing resource information required for
 * access, or null if not found.
 */
public AssetInfo tryLocate(AssetKey key){
  if (locatorsList.isEmpty()){
    logger.warning("There are no locators currently"+
            " registered. Use AssetManager."+
            "registerLocator() to register a"+
            " locator.");
    return null;
  }
  
  for (ImplThreadLocal<AssetLocator> local : locatorsList){
    AssetInfo info = local.get().locate(assetManager, key);
    if (info != null) {
      return info;
    }
  }
  
  return null;
}
com.jme3.assetImplHandler$ImplThreadLocalget

Popular methods of ImplHandler$ImplThreadLocal

  • <init>
  • getPath
  • getTypeClass
  • getExtensions

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Kernel (java.awt.image)
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now