Questions tagged [load-time-weaving]

Binary weaving of aspects when a class is loaded.

Load-Time Weaving (LTW) is instrumentation (binary weaving of aspects) at class loading time in a VM.

For example, in Java, it is implemented by AspectJ.

Alternatively, in the .NET world, it is also called "Runtime Weaving" (see the PostSharp documentation).

162 questions
2
votes
2 answers

How to ensure load time weaving takes place for Eclipselink when using SpringBootTest with other tests running beforethe Spring one

I'm using Spring Rest Docs to generate documentation for my REST services. This involves running unit(strictly integration) tests that run against a live Spring Boot Container that is kicked off by the test. The test class looks like…
PaulNUK
  • 4,774
  • 2
  • 30
  • 58
2
votes
2 answers

org.eclipse.equinox.weaving.aspectj missing in Eclipse Neon release?

I updated my Eclipse target definition from Mars to Neon: http://download.eclipse.org/releases/mars http://download.eclipse.org/releases/neon Now my launch is missing the org.eclipse.equinox.weaving.aspectj bundle. In Mars Equinox Target Components…
flavio.donze
  • 7,432
  • 9
  • 58
  • 91
2
votes
1 answer

Cant't Get Equinox Weaving to Work in Installable Feature

I have a bundle that does binary weaving at runtime using org.eclipsse.equinoix.weaving.hook. It works when I package it as a stand-alone app with the bundle that does the weaving specified in config.ini with a default start level. However, I also…
MidnightJava
  • 1,927
  • 2
  • 18
  • 38
2
votes
0 answers

AspectJ LTW not working with Spring Boot on unmanaged classes

I'm facing a problem on a large scale application using SpringBoot and AspectJ for logging purposes. The logging works fine for Spring Beans, but does not work for unmanaged classes (the ones I instantiate with 'new'). I've created a sample app…
2
votes
1 answer

issues when using spring aop load-time weaving deal with methods call inside itself

I have bussiness class as follow: class A { public void sayHello(String name){ System.out.println("hello "+name); } public void openDoorForJack(){ System.out.println("door opened"); this.sayHello("Jack"); …
revivn
  • 73
  • 7
2
votes
1 answer

CodeCop and .NET 4.6 - why won't it run?

I have recently tried Code Cop 1.3.1 - a method interceptor. However won't run when .NET Framework 4.6 is installed.
AndyT
  • 176
  • 8
2
votes
1 answer

wildfly 8.2 start fails on javaagent in vm argument

I am new to wildfly8 and also new for aspectJ. Wildfly 8.2 startup is getting failled if i add javaagent argument in VM argument for aspectjWeaver.jar for LTW(load time weaving) purpose. -javaagent:"D:\Installables\JBOSS-8-Tools\aop\sample aspectJ …
2
votes
1 answer

Spring AOP: Vs

I was looking for the option to profile my APIs. I found Spring AOP is one of the options to profile the methods. There are two options in Spring AOP to configure and use the aspects: context:load-time-weaver aop:aspectj-autoproxy As per my…
Narendra Verma
  • 2,372
  • 6
  • 34
  • 61
2
votes
0 answers

Load Time Weaving not working in domain object

I have a scenario where I need to access spring managed beans in my domain object(i.e. object created with new operator). I searched a lot and found that it can be done using Load Time Weaving provided by aspectJ. I've done all configurations for…
2
votes
2 answers

How can I make Loadtime-AspectJ to work in applet

Since AspectJ LoadTime-Weaving needs to load the JVM with an agent/it's own classloader - is there a way to load/make changes in the user's JVM from my applet? or maybe just before loading the applet (with a parent applet?)
kfinkels
2
votes
1 answer

Spring framework Tomcat LoadTimeWeaving

I am using tomcat as my webserver and would like to use the fetch = FetchType.lazy annotation for all my @OneToOne annotations but spring reverts my lazy settings give me eclipselink warnings : Reverting the lazy setting on the OneToOne or ManyToOne…
Warz
  • 7,386
  • 14
  • 68
  • 120
1
vote
0 answers

Load-time weaving with Spring, Eclipselink and Weblogic 10.x server

Can someone provide really working, verified configuration of Spring load-time weaving using EclipseLink on Weblogic server? It seems that docs (…
Ondrej Bozek
  • 10,987
  • 7
  • 54
  • 70
1
vote
2 answers

How to enable/disable load time weaving based on a config property

I've successfully enabled AspectJ's LoadTimeWeaving in my Spring project by annotating the configuration class with @EnableLoadTimeWeaving and adding an aop.xml. However, I want to make it config-driven such that by default it is off and is only…
1
vote
1 answer

AspectJ + Spring Boot not weaving included classes within aop.xml

I'm having quite a few problems integrating AspectJ with SpringBoot using the LoadTimeWeaving strategy (due Spring AOP doesn't fit my case). I configured following many guides AspectJ. Here are the dependencies I added on my pom AspectJ related …
L_Cleo
  • 1,073
  • 1
  • 10
  • 26
1
vote
1 answer

Specifying -javaagent in some other way

I am trying to get to the point where I can start my web application using: java -jar application.jar I have embedded Jetty and used a maven assembly to build the required jar and this all works perfectly, however I have just realised that I need…
Craig Day
  • 2,525
  • 1
  • 24
  • 26