Compile time weaving is a technique which allows AOP aspects to be "woven in" at compile time mainly by modifying the compiled code (e.g. byte-code manipulation in Java).
Questions tagged [compile-time-weaving]
89 questions
0
votes
0 answers
How to add @Priority annotation with different values in aspectJ
I have an interface and a bunch of classes implementing that interface.
I want to add @Priority(xxx) annotation to all these classes with changing value as depicted below.
public interface IMyInterface{}
Before :
public classA implements…

girijanandan nucha
- 77
- 1
- 1
- 6
0
votes
1 answer
Plugin 'AspectJ weaver' failed to initialize "java.lang.NoClassDefFoundError: com/intellij/openapi/compiler/ClassInstrumentingCompiler"
I'm trying to enable AspectJ Weaver plugin in IntelliJ Idea but I get the following error when the idea restarts and it disables the plugin:
Plugin 'AspectJ weaver' failed to initialize and will be disabled. Please restart IntelliJ…

Hadi
- 544
- 1
- 8
- 28
0
votes
1 answer
What are the values and their differences for eclipselink.weaving property?
Which values exist for the eclipselink.weaving property and what is their meaning?
In Spring we can create the entityManager using Java configuration or XML configuration, the following example is for XML:

rMonteiro
- 1,371
- 1
- 14
- 37
0
votes
1 answer
How to weave AspectJ java project into Spring boot project
I have java project named Test which have all aspects in it. I wan to use these aspects in another spring boot project. I am working on a poc to weave aspects in Test project into a spring boot application. What is the efficient way to do so and how…

ak219
- 1
- 2
0
votes
0 answers
Is it possible to weave into every method of a project using MethodDecorator.Fody?
I understand MethodDecorator.Fody provides a means to define an attribute decorator that can be used on any method throughout the assembly. Is it possible to have it automatically apply to all methods within that assembly? (E.g. as if I decorated…

J.D.
- 954
- 6
- 22
0
votes
1 answer
How to use load time weaving without -javaagent?
I am trying to enable loadtimeweaving without javaagent jar files of aspectweaver and spring-instrument. This what I have implemented to achieve the same But it's not…

nami20
- 31
- 1
- 2
0
votes
2 answers
Source Not Available on Fody decorated methods
I have the following scenario:
Where ProjectA is a simple class library, and ProjectB is a Console Application.
ProjectA.Class1.cs contains the following code:
using System;
namespace ProjectA
{
public class Class1
{
public void…

Nelladel
- 166
- 3
- 12
0
votes
2 answers
Spring @Transactional + AspectJ Compile Time Weaving does not work
I have a bunch of methods that are marked with @Transactional annotation and then they do self-invocation and some of the methods are private, so I want to use AspectJ flavour of transaction management with Spring.
I am compiling my code with…

Ihor M.
- 2,728
- 3
- 44
- 70
0
votes
1 answer
Compile time weaving in Spring Application not working properly
I am working on compile team weaving using AspectJ as Load time Weaving for the same is causing extra overhead on server startup.so the issue is at compile all the classes is being weaved. However when running application on server it is never…

shubhra thakur
- 51
- 7
0
votes
0 answers
Why AspectJ Before and After logs not getting traced?
I want to get traces following logs
{
@Aspect
@Component
public class AspectJPay {
private static final Logger log = LoggerFactory.getLogger(AxiPayCustomerController.class);
@Before("execution(*…

Das_J
- 71
- 2
- 9
0
votes
1 answer
Generate 'woven entity classes' automatically
I'm working with Spring-Data-JPA and EclipseLink.
In order to do static weaving of my entity classes I have defined my pom with:
org.codehaus.mojo
exec-maven-plugin
…

Eduardo
- 1,169
- 5
- 21
- 56
0
votes
1 answer
Cast error when trying to implement Fody add-in
I'm trying to learn how to write a Fody module, and was following the Pluralsight Fody course, which includes a walkthrough.
The sample add-in was to add an interface to any classes whose names ended in "DTO". He used the basic add-in from the Fody…

Avrohom Yisroel
- 8,555
- 8
- 50
- 106
0
votes
1 answer
Prevent AspectJ Maven plugin from rewriting classes
I'm stuck with the following problem: my plugin adda certain annotations to certain classes after they are compiled. I need AspectJ plugin to process them. So my plugin runs before AspectJ plugin. My plugin adds annotations but then AspectJ plugin…

Dmitry Senkovich
- 5,521
- 8
- 37
- 74
0
votes
1 answer
EclipseLink: Reverting the lazy setting on the OneToOne or ManyToOne attribute [type] for the entity class
Using EclipseLink 2.5 for JPA. Configured static weaving in Persistence.xml and included steps in Ant build script to run the weaving agent. However when deployed on Weblogic Server, the console shows the following error
Reverting the lazy setting…

Java Mantr
- 77
- 6
0
votes
0 answers
Use Spring & Aspectj AOP in another jar gets java.lang.NoSuchMethodError: aspectOf() error
I use Spring aop and Aspectj at compile time. The project structure is as follows
parent-module
|---aop
|---service
|---web-app
aop related stuff including annotation interface and aspects are in project aop, aop annotations are used in project…

HooYao
- 554
- 5
- 19