Class RepositoryContext


  • public class RepositoryContext
    extends Object
    Thread local container defining information about the current calling context for a repository. This is primarily used during invocations of contributed repository fragments (see RepositoryContribution). This context is set during such invocations and may be used by the fragment implementor to determine useful information about the repository and domain information in-play. This type of determination is generally only required in situation where a RepositoryContribution matches more than a single repository type.
    • Constructor Detail

      • RepositoryContext

        public RepositoryContext()
    • Method Detail

      • clear

        public static void clear()
      • getMetadata

        public org.springframework.data.repository.core.RepositoryMetadata getMetadata()
        Information about the current repository being called. It can be inspected to determine domain type.
      • setMetadata

        public void setMetadata​(org.springframework.data.repository.core.RepositoryMetadata metadata)
        Information about the current repository being called. It can be inspected to determine domain type.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object