org.springframework.data.repository.config
Class RepositoryBeanNameGenerator
java.lang.Object
org.springframework.data.repository.config.RepositoryBeanNameGenerator
- All Implemented Interfaces:
- Aware, BeanClassLoaderAware, BeanNameGenerator
public class RepositoryBeanNameGenerator
- extends Object
- implements BeanNameGenerator, BeanClassLoaderAware
Special BeanNameGenerator
to create bean names for Spring Data repositories. Will delegate to an
AnnotationBeanNameGenerator
but let the delegate work with a customized BeanDefinition
to make sure
the repository interface is inspected and not the actual bean definition class.
- Author:
- Oliver Gierke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryBeanNameGenerator
public RepositoryBeanNameGenerator()
setBeanClassLoader
public void setBeanClassLoader(ClassLoader classLoader)
- Specified by:
setBeanClassLoader
in interface BeanClassLoaderAware
generateBeanName
public String generateBeanName(BeanDefinition definition,
BeanDefinitionRegistry registry)
- Specified by:
generateBeanName
in interface BeanNameGenerator
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.