Annotation Type AnnotationAssetManager.Asset

Enclosing class:
AnnotationAssetManager

@Documented
@Retention(RUNTIME)
@Target({FIELD,METHOD})
public static @interface AnnotationAssetManager.Asset
Provides information about assets that fields or methods represent. The toString value of the value of the field or return value of the method annotated is used as path (except for FileHandle and AssetDescriptor which get special treatment). Methods annotated with this annotation must not return a primitive and have no parameters.
  • Optional Element Summary

    Optional Elements
    Modifier and Type Optional Element Description
    boolean load  
    java.lang.String param
    Methods referenced by this can either have no parameters or take a Class, String and Object in this order.
    java.lang.Class<?> value  
  • Element Details

    • load

      boolean load
      Returns:
      Whether this field or method should be loaded by AnnotationAssetManager.load(Class, Object). Default is true.
      Default:
      true
    • value

      java.lang.Class<?> value
      Returns:
      the type of the asset this field or method represents
      Default:
      void.class
    • param

      java.lang.String param
      Methods referenced by this can either have no parameters or take a Class, String and Object in this order. The Class is the type of the asset, the String is the path of the asset and the Object is the value of the field or return value of the method from which the asset is being loaded.
      Returns:
      The fully qualified or simple name of a field or method providing AssetLoaderParameters. If the name is simple, the declaring class of this field or method is assumed to be the declaring class of the AssetLoaderParameters field or method as well.
      Default:
      ""