Codota Logo
ICacheableModel.getLastModified
Code IndexAdd Codota to your IDE (free)

How to use
getLastModified
method
in
jadex.commons.ICacheableModel

Best Java code snippets using jadex.commons.ICacheableModel.getLastModified (Showing top 7 results out of 315)

  • Common ways to obtain ICacheableModel
private void myMethod () {
ICacheableModel i =
  • Codota IconMap map;Object key;(ICacheableModel) map.get(key)
  • Smart code suggestions by Codota
}
origin: net.sourceforge.jadex/jadex-kernel-micro

  /**
   *  Find the file for a given name.
   *  @param name    The filename or logical name (resolved via imports and extension).
   *  @param extension    The required extension.
   *  @param imports    The imports, if any.
   *  @return The resource info identifying the file.
   */
  protected ResourceInfo	getResourceInfo(String name, String extension, String[] imports, ClassLoader classloader) throws Exception
  {
    ResourceInfo ret = null;
    if(registered.containsKey(name))
    {
      // Hack!!! ignore file handling for registered models.
      ICacheableModel    model    = (ICacheableModel)registered.get(name);
      ret    = new ResourceInfo(name, null, model.getLastModified());
    }
    else
    {
      // Try to find directly as absolute path.
//            Class clazz = SReflect.findClass0(name, imports, classloader);
//            if(clazz!=null)
        ret = new ResourceInfo(name, null, 0L);
  
//            if(ret==null)
//                throw new IOException("File "+name+" not found in imports");//: "+SUtil.arrayToString(imports));
    }
    return ret;
  }
   
origin: org.activecomponents.jadex/jadex-kernel-micro

  /**
   *  Find the file for a given name.
   *  @param name    The filename or logical name (resolved via imports and extension).
   *  @param extension    The required extension.
   *  @param imports    The imports, if any.
   *  @return The resource info identifying the file.
   */
  protected ResourceInfo	getResourceInfo(String name, String extension, String[] imports, ClassLoader classloader) throws Exception
  {
    ResourceInfo ret = null;
    if(registered.containsKey(name))
    {
      // Hack!!! ignore file handling for registered models.
      ICacheableModel    model    = (ICacheableModel)registered.get(name);
      ret    = new ResourceInfo(name, null, model.getLastModified());
    }
    else
    {
      // Try to find directly as absolute path.
//            Class clazz = SReflect.findClass0(name, imports, classloader);
//            if(clazz!=null)
        ret = new ResourceInfo(name, null, 0L);
  
//            if(ret==null)
//                throw new IOException("File "+name+" not found in imports");//: "+SUtil.arrayToString(imports));
    }
    return ret;
  }
   
origin: net.sourceforge.jadex/jadex-kernel-bdiv3

  /**
   *  Find the file for a given name.
   *  @param name    The filename or logical name (resolved via imports and extension).
   *  @param extension    The required extension.
   *  @param imports    The imports, if any.
   *  @return The resource info identifying the file.
   */
  protected ResourceInfo	getResourceInfo(String name, String extension, String[] imports, ClassLoader classloader) throws Exception
  {
    ResourceInfo ret = null;
    if(registered.containsKey(name))
    {
      // Hack!!! ignore file handling for registered models.
      ICacheableModel    model    = (ICacheableModel)registered.get(name);
      ret    = new ResourceInfo(name, null, model.getLastModified());
    }
    else
    {
      // Try to find directly as absolute path.
//            Class clazz = SReflect.findClass0(name, imports, classloader);
//            if(clazz!=null)
        ret = new ResourceInfo(name, null, 0L);
  
//            if(ret==null)
//                throw new IOException("File "+name+" not found in imports");//: "+SUtil.arrayToString(imports));
    }
    return ret;
  }
   
origin: org.activecomponents.jadex/jadex-kernel-bdiv3

  /**
   *  Find the file for a given name.
   *  @param name    The filename or logical name (resolved via imports and extension).
   *  @param extension    The required extension.
   *  @param imports    The imports, if any.
   *  @return The resource info identifying the file.
   */
  protected ResourceInfo	getResourceInfo(String name, String extension, String[] imports, ClassLoader classloader) throws Exception
  {
    ResourceInfo ret = null;
    if(registered.containsKey(name))
    {
      // Hack!!! ignore file handling for registered models.
      ICacheableModel    model    = (ICacheableModel)registered.get(name);
      ret    = new ResourceInfo(name, null, model.getLastModified());
    }
    else
    {
      // Try to find directly as absolute path.
//            Class clazz = SReflect.findClass0(name, imports, classloader);
//            if(clazz!=null)
        ret = new ResourceInfo(name, null, 0L);
  
//            if(ret==null)
//                throw new IOException("File "+name+" not found in imports");//: "+SUtil.arrayToString(imports));
    }
    return ret;
  }
   
origin: org.activecomponents.jadex/jadex-commons

/**
 *  Find the file for a given name using any supported extension.
 *  @param name    The filename or logical name (resolved via imports and extensions).
 *  @param imports    The imports, if any.
 *  @return The resource info identifying the file.
 *  @throws    Exception when the file could not be found.
 */
protected ResourceInfo	getResourceInfo(String name, String[] imports, ClassLoader classloader) throws Exception
{
  ResourceInfo ret;
  if(registered.containsKey(name))
  {
    // Hack!!! ignore file handling for registered models.
    ICacheableModel    model    = (ICacheableModel)registered.get(name);
    ret    = new ResourceInfo(name, null, model.getLastModified());
  }
  else
  {
    ret = getResourceInfo0(name, imports, classloader);

    if(ret==null || ret.getInputStream()==null)
      throw new IOException("File "+name+" not found in imports.");//: "+SUtil.arrayToString(imports));
  }
  return ret;
}
origin: org.activecomponents.jadex/jadex-commons

ret    = new ResourceInfo(name, null, model.getLastModified());
origin: org.activecomponents.jadex/jadex-commons

if(cached.getLastModified()<info.getLastModified())
if(cached!=null)
  if(cached.getLastModified()<info.getLastModified())
jadex.commonsICacheableModelgetLastModified

Javadoc

Get the last modification time of the model.

Popular methods of ICacheableModel

  • getLastChecked
    Get the last check time of the model.
  • setLastChecked
    Set the last check time of the model.

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • JTable (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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