[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Controller's execution env

adrian@jboss.org do-not-reply at jboss.com
Mon Aug 4 10:16:09 EDT 2008


You just use the kernel as a factory to create a seperate context
that references the controller. Then you change whatever parameters you like
(subject to security).


  | <bean name="ReferenceToController">
  |    <constructor>
  |       <factory bean="jboss.kernel:service=Kernel"
  |                     method="getController"/>
  |    </constructor>
  |    <property name="executor"><inject bean="CustomExecutor"/></property>
  | ...
  | </bean>
  | 

That's why I said that it is probably not required to be on the interface,
except that it would make programmatic config easier (e.g. testing)
if you don't have to cast/know the implementation detail.

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

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



More information about the jboss-dev-forums mailing list