Ytterligare en Aspekt på din kod
Har du någonsin kopierat vissa snuttar kod – om, om och om igen? Trots att du redan har en snygg objektorienterad arkitektur? Trots att den är full med de bästa design-mönster som går att […]
View ArticleIndented Tracing Using AspectJ
Given inspiration from the book “AspectJ In Action”, I wrote a little aspect that provides indented tracing of method executions. This means that the aspect keeps track of the current indentation level...
View ArticleStatic Mock using AspectJ
After seeing MockME developed by some of my colleagues I started thinking about how this could be made in a generic way.
View ArticleAspect Oriented Programming In Java ME
Do you want to structure your Java ME applications better? Aspect Oriented Programming is a cool technology that can modularize your applications and separate the verbose infrastructure code from the...
View ArticleProxy Based AOP for Cocoa Touch
UITabBarController is generally used as is, no subclassing required. It creates a UITabBar and manages a list of UIViewControllers, keeping track of the tab in focus, UI creation and everything nice....
View ArticleTransparent bind of JavaFX and POJOs
When I started coding JavaFX I quickly found that the great bind mechanism doesn’t work together very well with my legacy Java code. In fact, it doesn’t work at all. In my case I […]
View ArticleSpring and load-time weaving of Neo4j-based domain objects
What do you do when your Spring configuration isn’t in charge of creating your objects that needs to be injected with stuff? This became a real problem for me when I tried doing some […]
View ArticleArchitectural Enforcement with Aid of AspectJ
After working some time within the software industry, you get a feeling for good software architecture. Or, to be more honest, you get a creeping feeling when the architecture is really bad. That is […]
View ArticleIntercepting Scala trait constructors
Today I was writing an AspectJ aspect for a Scala trait and was wondering why my constructor pointcut definition didn’t work. Having a closer look at the Scala byte code together with my colleague […]
View ArticleSimple AOP in JavaScript
During a recent re-factoring of some JavaScript I accidentally removed the last line of a function that told the UI to re-render according to the new data. After that I figured, why not move this...
View ArticleAspectJ and AOP – The black magic of programming
Index This post is part of an series of posts about AspectJ and AOP. AspectJ – Dictionary [this post] The basics of AOP Defining pointcuts by pattern Defining pointcuts by annotations Using annotations...
View ArticleThe basics of AOP
Index This post is part of an series of posts about AspectJ and AOP. AspectJ – Dictionary The basics of AOP [this post] Defining pointcuts by pattern Defining pointcuts by annotations Using annotations...
View ArticleDefining pointcuts by pattern
Index This post is part of an series of posts about AspectJ and AOP. AspectJ – Dictionary The basics of AOP Defining pointcuts by pattern [this post] Defining pointcuts by annotations Using annotations...
View ArticleDefining pointcuts by annotations
Index This post is part of an series of posts about AspectJ and AOP. AspectJ – Dictionary The basics of AOP Defining pointcuts by pattern Defining pointcuts by annotations [this post] Using annotations...
View ArticleUsing annotations element-value pairs in AspectJ
Index This post is part of an series of posts about AspectJ and AOP. AspectJ – Dictionary The basics of AOP Defining pointcuts by pattern Defining pointcuts by annotations Using annotations...
View ArticleConfiguring Maven to use standalone aspects
Index This post is part of an series of posts about AspectJ and AOP. AspectJ – Dictionary The basics of AOP Defining pointcuts by pattern Defining pointcuts by annotations Using annotations...
View ArticleSpring and load-time weaving of Neo4j-based domain objects
What do you do when your Spring configuration isn’t in charge of creating your objects that needs to be injected with stuff? This became a real problem for me when I tried doing some non-anemic domain...
View ArticleArchitectural Enforcement with Aid of AspectJ
After working some time within the software industry, you get a feeling for good software architecture. Or, to be more honest, you get a creeping feeling when the architecture is really bad. That is...
View ArticleIntercepting Scala trait constructors
Today I was writing an AspectJ aspect for a Scala trait and was wondering why my constructor pointcut definition didn’t work. Having a closer look at the Scala byte code together with my colleague...
View ArticleSimple AOP in JavaScript
During a recent re-factoring of some JavaScript I accidentally removed the last line of a function that told the UI to re-render according to the new data. After that I figured, why not move this...
View Article