Spring Data Core

org.springframework.data.repository.config
Class RepositoryBeanDefinitionRegistrarSupport

java.lang.Object
  extended by org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport
All Implemented Interfaces:
Aware, BeanClassLoaderAware, ImportBeanDefinitionRegistrar, EnvironmentAware, ResourceLoaderAware

public abstract class RepositoryBeanDefinitionRegistrarSupport
extends Object
implements ImportBeanDefinitionRegistrar, BeanClassLoaderAware, ResourceLoaderAware, EnvironmentAware

Base class to implement ImportBeanDefinitionRegistrars to enable repository

Author:
Oliver Gierke

Constructor Summary
RepositoryBeanDefinitionRegistrarSupport()
           
 
Method Summary
protected abstract  Class<? extends Annotation> getAnnotation()
          Return the annotation to obtain configuration information from.
protected abstract  RepositoryConfigurationExtension getExtension()
          Returns the RepositoryConfigurationExtension for store specific callbacks and BeanDefinition post-processing.
 void registerBeanDefinitions(AnnotationMetadata annotationMetadata, BeanDefinitionRegistry registry)
           
 void setBeanClassLoader(ClassLoader classLoader)
           
 void setEnvironment(Environment environment)
           
 void setResourceLoader(ResourceLoader resourceLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryBeanDefinitionRegistrarSupport

public RepositoryBeanDefinitionRegistrarSupport()
Method Detail

setBeanClassLoader

public void setBeanClassLoader(ClassLoader classLoader)
Specified by:
setBeanClassLoader in interface BeanClassLoaderAware

setResourceLoader

public void setResourceLoader(ResourceLoader resourceLoader)
Specified by:
setResourceLoader in interface ResourceLoaderAware

setEnvironment

public void setEnvironment(Environment environment)
Specified by:
setEnvironment in interface EnvironmentAware

registerBeanDefinitions

public void registerBeanDefinitions(AnnotationMetadata annotationMetadata,
                                    BeanDefinitionRegistry registry)
Specified by:
registerBeanDefinitions in interface ImportBeanDefinitionRegistrar

getAnnotation

protected abstract Class<? extends Annotation> getAnnotation()
Return the annotation to obtain configuration information from. Will be wrappen into an AnnotationRepositoryConfigurationSource so have a look at the constants in there for what annotation attributes it expects.

Returns:

getExtension

protected abstract RepositoryConfigurationExtension getExtension()
Returns the RepositoryConfigurationExtension for store specific callbacks and BeanDefinition post-processing.

Returns:
See Also:
RepositoryConfigurationExtensionSupport

Spring Data Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.