Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-3964

Update StoreConfiguration.store() to return a Generic Store.

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • None
    • None

      Currently StoreConfiguration.store() returns a Store implementation that does not have a generic type. This means we have to cast to get the generic types working correctly. Upon doing some research all store types EXCEPT for memory store are generic. We will update memory store to be generic and refactor the config classes to return stores with the proper generic type.

      See :

       store = (SQLStore<Message>) DataManager.config("messageStore", SQLStoreConfiguration.class)
                    .withContext(context)
                    .forClass(Message.class)
                    .store();
      

            Unassigned Unassigned
            supittma@redhat.com Summers Pittman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: