Example usage for org.springframework.beans.factory FactoryBean getClass

List of usage examples for org.springframework.beans.factory FactoryBean getClass

Introduction

In this page you can find the example usage for org.springframework.beans.factory FactoryBean getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.piraso.server.sql.SQLContextLogger.java

/**
 * Wraps the given {@link FactoryBean<DataSource>} to add support for context logging.
 *
 * @param beanFactory {@link FactoryBean<DataSource>} to add context logging support.
 * @param id the unique identification for this dataSource.
 * @return the proxy {@link FactoryBean<DataSource>} with context logging support.
 *//*w  w  w.  ja  v a  2s . c o m*/
public static FactoryBean createFactory(FactoryBean beanFactory, String id) {
    DataSourceBeanProxyFactory proxyFactory = new DataSourceBeanProxyFactory(beanFactory.getClass(),
            new GroupChainId(id));

    return proxyFactory.getProxy(beanFactory);
}