[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Way to control when injection happens?

alesj do-not-reply at jboss.com
Tue Oct 14 05:17:17 EDT 2008


"scott.stark at jboss.org" wrote : 
  | My question is can one delay injection of the HAPartitionCacheHandler.cache until the HAPartition bean is started?
  | 
You could add 

  | <demand state="Configured">HAPartition</demand>
  | 
to

  |          <bean class="org.jboss.ha.jndi.impl.jbc.JBossCacheDistributedTreeManager">
  |             <property name="clusteredCache"><inject bean="HAPartitionCacheHandler" property="cache"/></property>
  |          </bean>
  | 
which would halt injection until HAPartition is installed (instead of started).

If you really need HAPartition at started state,
I don't see how you can currently do that,
but this can be easily fixed / hacked. :-)


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182042#4182042

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182042



More information about the jboss-dev-forums mailing list