Example usage for org.springframework.instrument.classloading ReflectiveLoadTimeWeaver ReflectiveLoadTimeWeaver

List of usage examples for org.springframework.instrument.classloading ReflectiveLoadTimeWeaver ReflectiveLoadTimeWeaver

Introduction

In this page you can find the example usage for org.springframework.instrument.classloading ReflectiveLoadTimeWeaver ReflectiveLoadTimeWeaver.

Prototype

public ReflectiveLoadTimeWeaver() 

Source Link

Document

Create a new ReflectiveLoadTimeWeaver for the current context class loader, which needs to support the required weaving methods.

Usage

From source file:io.github.azige.bbs.config.DataConfiguration.java

@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
    LocalContainerEntityManagerFactoryBean bean = new LocalContainerEntityManagerFactoryBean();
    bean.setDataSource(dataSource());//from  w  ww  . j  av a 2 s.  c  o m
    bean.setLoadTimeWeaver(new ReflectiveLoadTimeWeaver());
    return bean;
}