Quantcast
Channel: i-proving.com» spring
Browsing all 11 articles
Browse latest View live

Autowiring prototypes

One thing that’s always annoyed me about using the @Autowired annotation to configure Spring beans is that the standard interface for instantiating prototype beans is not refactoring-friendly. For...

View Article



In memory of our loved pointcuts

Using AOP, Spring allows you to easily intercept (or wrap) execution points and “magically” add some particular behavior (an Advice in AOP terms).Defining the executing points of interest (that is –...

View Article

Fun with Spring’s OpenSessionInViewFilter and Wicket

I have been spending some time exploring Spring‘s OpenSessionInViewFilter to use as part of our persistence framework for some of our Wicket web applications (particularly for small projects where...

View Article

Spring TestContext Framework

“The Spring TestContext Framework provides generic, annotation-driven unit and integration testing support that is agnostic of the testing framework in use, whether JUnit 3.8.2, JUnit 4.5+, TestNG...

View Article

Hibernate Persistence Unit Test using the Spring TestContext Framework

This is a simple example of how to write a Hibernate Persistence JUnit4 test for your Spring / Hibernate application using the Spring TestContext Framework. The Test: @ContextConfiguration(locations =...

View Article


Spring: Persistence Test – Commit or Rollback?

Recently I was discussing Persistence tests with a few folks here at Intelliware. The debate on the table…Commit or rollback? It was almost evenly split down the middle. But even within that I found a...

View Article

Hibernate Persistence Test – Check for Proxy

Recently we ran into a performance problem, the root cause of which is described in One-to-one Hibernate mapping not proxied if optional. As an after thought I wondered if a unit test approach could...

View Article

Domain Driven Design with Spring and AspectJ

Learn how to inject dependencies at runtime with spring and aspectj. http://www.javacodegeeks.com/2011/02/domain-driven-design-spring-aspectj.html

View Article


Maven, Spring, and the Shade Uber-Jar

The Maven Shade plugin creates a Uber-jar which is a jar of a given maben project and all of it’s runtime dependencies. This is a handy tool, especially when you make the uber jar executable....

View Article


Spring Improving Data Access Technologies

Spring Data makes it easier to build applications that use new data access technologies such as non-relational databases, map-reduce frameworks, and cloud based data services as well as provide...

View Article

DRY configuration

Externalizing application configuration values into a properties file is a common pattern in enterprise applications, because it gets the environment-specific settings out of the code and avoids the...

View Article
Browsing all 11 articles
Browse latest View live




Latest Images