[jboss-user] [Microcontainer] - Re: Emulating ServiceMBeanSupport

alesj do-not-reply at jboss.com
Sun Jul 22 06:11:14 EDT 2007


"genman" wrote : 
  | I'd like to also intercept calls to the method "getState()" and return the Microcontainer state. Or, I'd like to "inject" state somehow.
  | 
  |   | public class MyService {
  |   |   @InjectState
  |   |   State state;
  |   |   public State getState() { return state; }
  |   | }
  |   | 
  | 
Just added new feature:

  | <inject fromContext="getState" />
  | 
will do the job. ;-)

Follow this post for more info:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=113340&start=20

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

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



More information about the jboss-user mailing list