Package jadex.common

Class LazyResource

java.lang.Object
jadex.common.LazyResource

public class LazyResource extends Object
Representation of data loaded on first access. Used, e.g., for component type icons.
  • Field Details

    • clazz

      protected Class<?> clazz
      The reference class for using correct package and class loader.
    • path

      protected String path
      The resource path (relative to clazz or absolute).
    • data

      protected byte[] data
      The resource, if already loaded.
    • exception

      protected IOException exception
      The exception, if already failed.
  • Constructor Details

    • LazyResource

      public LazyResource(Class<?> clazz, String path)
      Create a lazy resource.
  • Method Details