Questions tagged [compile-time-weaving]

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).

89 questions
2
votes
1 answer

How can I make sure that aspects generated by Spring roo are woven by a dependent project?

I have a Spring Roo multi module project. I noticed that after including the jar/module containing my domain model in another project, the aspects had not been woven leaving me with domain classes without any usable getters/setters. How can I make…
balteo
  • 23,602
  • 63
  • 219
  • 412
2
votes
2 answers

Startup performance of Spring @Configurable with Compile Time Weaving

this is my first question on stack overflow, so please be kind. i am running an app with spring 2.5.x Configurable Annotations Compile time weaving (CTW) maven eclipse/ajdt I use CTW and everything runs fine. But if i instantiate an annotated…
1
vote
0 answers

Netbeans + maven + aspectj compile time weaving

I've got a Maven project set-up for compile-time weaving with aspectj (mainly for the @Configurable annotation). Everything works fine with a full build but Netbeans has this feature, like many other IDEs, that does recompiling and hot deployment…
Mircea D.
  • 331
  • 4
  • 14
1
vote
1 answer

ILWeaving help - [ValidSystemPath] attribute

Problem I'm using Mono.Cecil to IL Weave string property getters that have my custom [ValidSystemPath] attribute on them. The purpose of the attribute is to ensure the property only ever returns valid system characters for file names and paths etc.…
Dom
  • 213
  • 3
  • 10
1
vote
0 answers

iajc fails to weave aspects from a jar but succeedes from class files

So I defined iajc task for my project that does intertype declarations just fine, then there is a separate jar task that creates a project.jar. Then there is iajc task for junit test target, this task references the project.jar with the goal of…
TJunkie
  • 73
  • 1
  • 8
1
vote
1 answer

Unity script won't update after first successful weaving with Mono.Cecil

I'm using Mono.Cecil to modify assemblies post compilation within Unity (I'm using this implementation of Mono.Cecil). For some reason, if I add a field to a type in an assembly, and the type of the field is a delegate type that I've defined,…
Jake
  • 73
  • 5
1
vote
3 answers

The persistence doesn't recognize the entity class

I am developing a java program about some lotteries of my country, it has a database with the lottos and other numbers. There is no problem with the entity classes, but when I run the problem my persistence unit does not recognize one entity class.…
rtc__
  • 11
  • 3
1
vote
2 answers

PostSharp not running in new csproj

On any project using the new VS2017 csproj format (.NET Core, Standard, or Framework), unless PostSharp is a direct NuGet dependency, aspects are not weaved into the code. For example, if I create a .NET Core project that depends on…
doug144
  • 387
  • 3
  • 9
1
vote
1 answer

Using Fody and Ionad to replace static calls on external assemblies

I'm using Fody and Ionad to replace static calls to DateTime.Now as it is described in the documentation: [StaticReplacement(typeof(DateTime))] public static class DateTimeSubstitute { public static IDateTime Current { get; set; } public…
Lindsey1986
  • 381
  • 1
  • 3
  • 15
1
vote
1 answer

Fody MethodDecorator on assembly level

I'm trying to use fody with MethodDecorator on assembly level. I tried to use the attribute provided by the sample code without any changes: [AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor | AttributeTargets.Assembly |…
Sebastian Schumann
  • 3,204
  • 19
  • 37
1
vote
0 answers

Spring boot aspectj gradle compile time weaving issue

I have a spring book application, which works fine. I would like to send email notifications to me if there are exceptions thrown from my application. I think aspectj is a good fit. First, I tried to use Spring AOP runtime weaving, which works OK…
The MW
  • 401
  • 4
  • 15
1
vote
2 answers

Using AspectJ annotations in maven project: weaving is not working

I am trying to use AspectJ in a simple project without using Spring, and while I have seen similar questions and my code seems to be correct, I don't understand why it's not working. I'm using Eclipse Oxygen 4.7.3 (not using AJDT tools), JDK 7,…
1
vote
2 answers

C# source code transformation

We are attempting to migrate a large code-base from one UI library to another. The 2 libraries are conceptually quite similar with some naming differences in most cases. We would like to automate as much of this as possible. We want to implement…
BlueSilver
  • 1,052
  • 2
  • 10
  • 25
1
vote
1 answer

Using Aspectj compile time weaving and Java compile time annotation processing in one project

I have searched far and wide and have not found anything that would help me resolve my problem. I am trying to implement a certain functionality and I am creating a PoC solution, here is the issue though: it involves using both compile time weaved…
1
vote
1 answer

Spring @Configurable annotation with AspectJ

Can't make my project compile with Aspectj. There's an issue with Apache CXF that ResourceContext.getResource(SomeClass.class) creates a simple object not a Spring-managed one. So I would like to use weaving and @Configurable to come over this…