Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1049

Avoid bean serializations / use ApplicationScoped instead Dependent for performance reasons

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.2
    • 1.5.3
    • Data-Module
    • None

    Description

      Currently QueryHandler is Dependent and a instance will be created for every repository.
      QueryHandler can be ApplicationScoped to avoid serialization if the user doesn't set a scope to the repository.

      Classes which doesn't need to implement Serializable (and doesn't need a serialVersionUID):
      QueryBuilderFactory
      RepositoryComponents
      QueryHandler

      Classes which can be ApplicationScoped:
      QueryBuilderFactory
      TransactionalQueryRunner
      QueryHandler

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            tandraschko Thomas Andraschko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: