Annotation Interface CollectionMapping


@Retention(RUNTIME) @Target(METHOD) @Inherited public @interface CollectionMapping
An annotation that defines the type of collection and the type of elements to use when creating the collection in a bean context.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Collection>
    The concrete class to use as a collection.
    The class to use as the elements of the collection (since the generics type isn't known at run time).
  • Element Details

    • collectionClass

      Class<? extends Collection> collectionClass
      The concrete class to use as a collection.
    • elementClass

      Class<?> elementClass
      The class to use as the elements of the collection (since the generics type isn't known at run time).