Class RepositoryContext
java.lang.Object
com.broadleafcommerce.data.tracking.core.RepositoryContext
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic voidclear()booleanstatic RepositoryContextorg.springframework.data.repository.core.RepositoryMetadataInformation about the current repository being called.inthashCode()voidsetMetadata(org.springframework.data.repository.core.RepositoryMetadata metadata) Information about the current repository being called.toString()
-
Constructor Details
-
RepositoryContext
public RepositoryContext()
-
-
Method Details
-
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-