Class RepositoryContext

java.lang.Object
com.broadleafcommerce.data.tracking.core.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 Details

    • RepositoryContext

      public RepositoryContext()
  • Method Details

    • getContext

      public static RepositoryContext getContext()
    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object