Enum Class RepositoryDetectionStrategy.RepositoryDetectionStrategies
java.lang.Object
java.lang.Enum<RepositoryDetectionStrategy.RepositoryDetectionStrategies>
org.springframework.data.rest.core.mapping.RepositoryDetectionStrategy.RepositoryDetectionStrategies
- All Implemented Interfaces:
Serializable
,Comparable<RepositoryDetectionStrategy.RepositoryDetectionStrategies>
,Constable
,RepositoryDetectionStrategy
- Enclosing interface:
- RepositoryDetectionStrategy
public static enum RepositoryDetectionStrategy.RepositoryDetectionStrategies
extends Enum<RepositoryDetectionStrategy.RepositoryDetectionStrategies>
implements RepositoryDetectionStrategy
A variety of strategies to determine repository exposure.
- Since:
- 2.5
- Author:
- Oliver Gierke
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.springframework.data.rest.core.mapping.RepositoryDetectionStrategy
RepositoryDetectionStrategy.RepositoryDetectionStrategies
-
Enum Constant Summary
Enum ConstantDescriptionConsiders all repositories.Considers repositories that are annotated withRepositoryRestResource
orRestResource
and don't have theexported
flag not set to false.Exposes public interfaces or ones explicitly annotated withRepositoryRestResource
.Considers the repository interface's visibility, which means only public interfaces will be exposed. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.springframework.data.rest.core.mapping.RepositoryDetectionStrategy
isExported
-
Enum Constant Details
-
ALL
Considers all repositories. -
DEFAULT
Exposes public interfaces or ones explicitly annotated withRepositoryRestResource
.- See Also:
-
VISIBILITY
Considers the repository interface's visibility, which means only public interfaces will be exposed. -
ANNOTATED
Considers repositories that are annotated withRepositoryRestResource
orRestResource
and don't have theexported
flag not set to false.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-