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<? extends Serializable> |
getIdType()
Returns the id class the given class is declared for.
|
getRepositoryInterface, getReturnedDomainClass
public AnnotationRepositoryMetadata(Class<?> repositoryInterface)
AnnotationRepositoryMetadata
instance looking up repository types from a
RepositoryDefinition
annotation.repositoryInterface
- must not be null.public Class<? extends Serializable> getIdType()
RepositoryMetadata
null
if none found.public Class<?> getDomainType()
RepositoryMetadata
null
if none found.Copyright © 2011-2013-2014 Pivotal. All Rights Reserved.