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 aRepositoryContribution
matches 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 boolean
canEqual(Object other)
static void
clear()
boolean
equals(Object o)
static RepositoryContext
getContext()
org.springframework.data.repository.core.RepositoryMetadata
getMetadata()
Information about the current repository being called.int
hashCode()
void
setMetadata(org.springframework.data.repository.core.RepositoryMetadata metadata)
Information about the current repository being called.String
toString()
-
-
-
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)
-
-