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 (seeRepositoryContribution). 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 aRepositoryContributionmatches more than a single repository type.
-
-
Constructor Summary
Constructors Constructor Description RepositoryContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)static voidclear()booleanequals(Object o)static RepositoryContextgetContext()org.springframework.data.repository.core.RepositoryMetadatagetMetadata()Information about the current repository being called.inthashCode()voidsetMetadata(org.springframework.data.repository.core.RepositoryMetadata metadata)Information about the current repository being called.StringtoString()
-
-
-
Method Detail
-
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.
-
canEqual
protected boolean canEqual(Object other)
-
-