@Nonnull @Target(value=TYPE) @Inherited @Retention(value=RUNTIME) public @interface CatalogedBy
Enum
. The class marked as CatalogedBy
must have a
registrar class that can be queried for all types and subtypes of the
catalog.Modifier and Type | Required Element and Description |
---|---|
Class<?>[] |
value
Gets the class that is the catalog for this
CatalogedBy type. |
public abstract Class<?>[] value
CatalogedBy
type.
Since the type class annotated with CatalogedBy
knows what
the catalog class is, we can safely rely on the value to get all
known instances of the CatalogedBy
.
This is similar to knowing at runtime that all available "EntityType"(s) are cataloged in the "EntityTypes" class.