spiros.blog()
Spiros Tzavellas’s blog, mostly on software development and Java.
Browse: Home / dependency injection

dependency injection

Using java.util.Date values in Spring bean definitions

By spiros on June 11, 2006

In a Spring bean definition you can set value properties to a bean by using the value attribute in the property element. For example below I set the value of the firstName property of a bean with id spiros of type com.tzavelas.beans.Person to Spiros. <bean id=”spiros” class=”com.tzavellas.beans.Person”> <property name=”firstName” value=”Spiros”/> </bean> In Spring XML, by [...]

Posted in Java | Tagged dependency injection, spring framework | 4 Responses

Spring Framework’s FactoryBean

By spiros on July 3, 2005

Alef Arendsen in this post explains the various ways you can create objects using the Spring ‘s ApplicationContext. He also explains in detail the FactoryBean interface and how it can be used to implement factories that can be embedded in the ApplicationContext XML configuration.

Posted in Java | Tagged dependency injection, spring framework

Pages

  • About
  • Projects

Categories

  • .Net
  • Agile
  • architecture
  • Databases
  • Firefox
  • Java
  • Javascript
  • Linux/Unix
  • Programming
  • Scala
  • Startups
  • Web

Tags

aop architecture aws book C# C/C++ caching circuit-breaker cloud clustering Databases dependency injection design patterns distributed eclipse EclipseLink ejb fp gc guice gwt hibernate Java javaee jhug jpa junit jvm maven mysql oop php podcast ruby Scala scalability scrum seam spring framework struts tools transactions web services wireless xml

Copyright © 2012 spiros.blog().

Powered by WordPress and Hybrid.