BeanDefinitionHolder getBeanName - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for BeanDefinitionHolder getBeanName method.

This code example shows how to use the following methods:getBeanDefinition, getBeanName
		this.definitionWrapper = new BeanWrapperImpl(bd);
		return bd;
	} 
 
	public void setBeanDefinitionHolder(BeanDefinitionHolder holder) {
		this.definition = (AbstractBeanDefinition) holder.getBeanDefinition();
		this.beanName = holder.getBeanName();
	} 
 
	public BeanDefinitionHolder getBeanDefinitionHolder() {
		return new BeanDefinitionHolder(getBeanDefinition(), getBeanName());
	} 
 
	public void setParent(Object obj) {
		if (obj == null) {
			throw new IllegalArgumentException("Parent bean cannot be set to a null runtime bean reference!");
		} 
		if (obj instanceof String) {
			this.parentName = (String) obj;
		} 
6
CodeRank
This code example shows how to use the following methods:getBeanDefinition, getBeanName
This code example shows how to use the following methods:getBeanName
     *  
     * {@inheritDoc} 
     */ 
    public BeanDefinitionHolder decorate(Node node, BeanDefinitionHolder definition, ParserContext parserContext) {
        Element element = (Element) node;
        parseInternal(element, parserContext, definition.getBeanName());
        return definition;
    } 
 
    /** 
     *  
     * {@inheritDoc} 
     */ 
    @Override 
    protected void validateRemotingDestination(Element element, ParserContext parserContext) {
        if (StringUtils.hasText(element.getAttribute(REF_ATTR))) {
            parserContext.getReaderContext().error("ref attribute not allowed when using remoting-destination as a nested tag.", element);
        } 
    } 
} 
4
CodeRank
This code example shows how to use the following methods:getBeanName
     */ 
    public BeanDefinitionHolder decorate(Node source,
                                         BeanDefinitionHolder holder,
                                         ParserContext context) {
 
        String beanName = holder.getBeanName();
        BeanDefinitionRegistry registry = context.getRegistry();
        registerPerformanceMonitor(beanName, registry);
        registerInterceptor(source, beanName, registry);        
         
        return holder;
    } 
 
    /** 
     * Register a new SingleServiceWrapperInterceptor for the bean being 
     * wrapped, associate it with the PerformanceMonitor and tell it which methods 
     * to intercept. 
     * 
     * @param source An Attribute node from the spring configuration 
     * @param beanName The name of the bean that this performance monitor is wrapped around 
3
CodeRank
getBeanName Method Overview
Return the primary name of the bean, as specified for the bean definition.
See Code Examples for other Spring Framework BeanDefinitionHolder Methods: