com.holonplatform.spring

## Annotation Type DatastoreCommodityFactory

-     @Target(value=TYPE)
       @Retention(value=RUNTIME)
       @Documented
       @Inherited
       @Component
      public @interface DatastoreCommodityFactory

  Annotation wich can be used on a `DatastoreCommodityFactory` type class to automatically register this factory into a `Datastore` Spring bean.

  The `datastoreBeanName()` can be used to uniquely identify the `Datastore` bean into which register the factory, if more than one Datastore bean is present in Spring context.

  The annotation is itself annotated with `Component` to register the annotated class as a Spring bean.

  Since:
    5.0.0

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String` | `datastoreBeanName` Get the optional `Datastore` bean name into which register the factory, if more than one Datastore bean is present in Spring context.

- - ### Element Detail

    - #### datastoreBeanName

          public abstract String datastoreBeanName

      Get the optional `Datastore` bean name into which register the factory, if more than one Datastore bean is present in Spring context.
      Returns:
        Datastore bean name
      Default:
        ""

Copyright © 2019 The Holon Platform. All rights reserved.