Re: ComponentContext.inject() usage in storage framework

2013-08-28 Thread Darren Shepherd
On 08/28/2013 01:41 PM, Edison Su wrote: There are cases, the object is not singleton, such as VolumeObject, but it needs to access DAO, then either we need to pass the DAOs in the VolumeObject's constructor, or through ComponentContext.inject(), or using AspectJ's @Configurable(http://static.

RE: ComponentContext.inject() usage in storage framework

2013-08-28 Thread Edison Su
There are cases, the object is not singleton, such as VolumeObject, but it needs to access DAO, then either we need to pass the DAOs in the VolumeObject's constructor, or through ComponentContext.inject(), or using AspectJ's @Configurable(http://static.springsource.org/spring/docs/3.1.x/spring-f