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

adrian@jboss.org do-not-reply at jboss.com
Tue Oct 14 10:04:53 EDT 2008


"scott.stark at jboss.org" wrote : That does work, but I don't understand why. Configured is an earlier state than Started or Installed (which I also tried, and this does not work for this demand). Why would a demand on Configured allow the HAPartition bean to move further than Started or Installed? 

I think you're misunderstand what it is doing. :-)

The "state" is really "whenRequired"

  |    @XmlAttribute(name="state")
  |    public void setWhenRequired(ControllerState whenRequired)
  |    {
  | 

So the above says that the HAPartition must be the Installed state
before the JBossCacheDistributedTreeManager moves to the Configured state
where it injects the HAPartitionCacheHandler.cache

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

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



More information about the jboss-dev-forums mailing list