Annotation Interface ModelDescriptor


@Target(TYPE) @Retention(RUNTIME) @Repeatable(ModelDescriptors.class) public @interface ModelDescriptor
To be used on Asset classes to include another class in descriptor scans (only used when AssetModelProvider.useAutoScan() is true), otherwise the descriptors must be explicitly specified in the appropriate AssetModelProvider descriptor getter methods.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Asset>
    The Asset type to which discovered descriptors should be associated (can be abstract or concrete).
    Class that should be scanned for public static fields for descriptors.
  • Element Details

    • assetType

      Class<? extends Asset> assetType
      The Asset type to which discovered descriptors should be associated (can be abstract or concrete).
    • provider

      Class<?> provider
      Class that should be scanned for public static fields for descriptors.