Example usage for org.springframework.beans.factory BeanFactoryUtils originalBeanName

List of usage examples for org.springframework.beans.factory BeanFactoryUtils originalBeanName

Introduction

In this page you can find the example usage for org.springframework.beans.factory BeanFactoryUtils originalBeanName.

Prototype

public static String originalBeanName(String name) 

Source Link

Document

Extract the "raw" bean name from the given (potentially generated) bean name, excluding any "#..."

Usage

From source file:org.springframework.beans.factory.config.PropertyPathFactoryBean.java

/**
 * The bean name of this PropertyPathFactoryBean will be interpreted
 * as "beanName.property" pattern, if neither "targetObject" nor
 * "targetBeanName" nor "propertyPath" have been specified.
 * This allows for concise bean definitions with just an id/name.
 *//* w  ww  .  j  a va 2s .  c  om*/
@Override
public void setBeanName(String beanName) {
    this.beanName = StringUtils.trimAllWhitespace(BeanFactoryUtils.originalBeanName(beanName));
}