Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

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

scott.stark@jboss.org

2007-07-22


"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
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.