public class AnnotationRepositoryMetadata extends AbstractRepositoryMetadata
RepositoryMetadata
implementation inspecting the given repository interface for a
RepositoryDefinition
annotation.Constructor and Description |
---|
AnnotationRepositoryMetadata(Class<?> repositoryInterface)
Creates a new
AnnotationRepositoryMetadata instance looking up repository types from a
RepositoryDefinition annotation. |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getDomainType()
Returns the domain class the repository is declared for.
|
Class<?> |
getIdType()
Returns the id class the given class is declared for.
|
getAlternativeDomainTypes, getCrudMethods, getMetadata, getRepositoryInterface, getReturnedDomainClass, getReturnType, isPagingRepository, isReactiveRepository
public AnnotationRepositoryMetadata(Class<?> repositoryInterface)
AnnotationRepositoryMetadata
instance looking up repository types from a
RepositoryDefinition
annotation.repositoryInterface
- must not be null.public Class<?> getIdType()
RepositoryMetadata
public Class<?> getDomainType()
RepositoryMetadata
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.