Spring Framework AnnotationBeanNameGenerator - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework AnnotationBeanNameGenerator class.

This code example shows how to use the following methods:
 *  
 * @author Oliver Gierke 
 */ 
public class RepositoryBeanNameGenerator implements BeanNameGenerator, BeanClassLoaderAware {
 
	private static final BeanNameGenerator DELEGATE = new AnnotationBeanNameGenerator();
 
	private ClassLoader beanClassLoader;
 
	/*  
	 * (non-Javadoc) 
	 * @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader) 
	 */ 
	public void setBeanClassLoader(ClassLoader classLoader) {
		this.beanClassLoader = classLoader;
	} 
 
	/*  
	 * (non-Javadoc) 
	 * @see org.springframework.beans.factory.support.BeanNameGenerator#generateBeanName(org.springframework.beans.factory.config.BeanDefinition, org.springframework.beans.factory.support.BeanDefinitionRegistry) 
5
CodeRank
This code example shows how to use the following methods:
 
    public static final String BEAN_TYPE = "springBean";
 
    private final ApplicationContext context;
 
    private final AnnotationBeanNameGenerator beanNameGenerator = new AnnotationBeanNameGenerator();
 
    /** 
     * In order to resolve bean name from class using beanNameGenerator we 
     * need a registry - serves no other purpose. 
     */ 
    private final SimpleBeanDefinitionRegistry registry = new SimpleBeanDefinitionRegistry();
 
    public SpringBeanType(ApplicationContext context) {
        super(Object.class);
        this.context = context;
    } 
 
    @Override 
    protected String encodeValue(Object value) {
4
CodeRank
This code example shows how to use the following methods:
 */ 
public class SpringFunctionRepository extends AbstractScanningJavaFunctionRepository { 
 
    public static final String FUNCTION_TYPE = "spring";
 
    private final AnnotationBeanNameGenerator beanNameGenerator = new AnnotationBeanNameGenerator();
 
    /** 
     * In order to resolve bean name from class using beanNameGenerator we 
     * need a registry - serves no other purpose. 
     */ 
    private final SimpleBeanDefinitionRegistry registry = new SimpleBeanDefinitionRegistry();
 
    @Override 
    protected Class<? extends Annotation> annotationClass() {
        return SpringPlugin.class; 
    } 
 
    @Override 
    protected Function createFunction(String functionName, Method method) {
4
CodeRank
See Code Examples for Spring Framework AnnotationBeanNameGenerator Methods: