-
Enterprise Java
Polling an http end point using Spring Integration
It is a little non-intuitive if you want to write a flow with Spring Integration which polls an http end point…
Read More » -
Enterprise Java
Method Parameter Names and Spring
Continuing on the previous blog entry about Constructor and method parameters and Java not retaining the parameter names at runtime –…
Read More » -
Enterprise Java
Spring Constructor Injection and Argument names
At runtime, java classes do not retain the name of the constructor or method parameters, unless classes are compiled with…
Read More » -
Enterprise Java
Spring Collection Merging
Spring collection merging is a feature that I first came across as an answer to a StackOverflow question It is…
Read More » -
Enterprise Java
Spring Testing Support and Context caching
Spring provides a comprehensive support for unit and integration testing – through annotations to load up a Spring application context,…
Read More » -
Core Java
Java Annotations – Retention
Consider a Java annotation: public @interface AnAnnotaton { } A class with this annotation applied on it: @AnAnnotaton class AnAnnotatedClass{…
Read More » -
Enterprise Java
Wire object dependencies outside a Spring Container
There are a few interesting ways of setting the properties and dependencies of an object instantiated outside of a Spring…
Read More » -
Enterprise Java
Spring Scoped Proxy
Consider two Spring beans defined this way: @Component class SingletonScopedBean{ @Autowired private PrototypeScopedBean prototypeScopedBean; public String getState(){ return this.prototypeScopedBean.getState(); }…
Read More » -
Enterprise Java
Spring @Configuration and FactoryBean
Consider a FactoryBean for defining a cache using a Spring configuration file: <cache:annotation-driven /> <context:component-scan base-package='org.bk.samples.cachexml'></context:component-scan> <bean id='cacheManager' class='org.springframework.cache.support.SimpleCacheManager'> <property…
Read More »