[jboss-dev-forums] [Design of JBossCache] - Re: Injection of MBeanServer

scott.stark@jboss.org do-not-reply at jboss.com
Sun Nov 5 15:36:46 EST 2006


The compile time dependency is the bad thing about annotations. You can specifiy this via xml and I would not even use the JMX annotation for something like a cache (or any core jboss framework classes) since there are likely to be many of them and no reasonable defaults that should be hard-coded. See the microntainer aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/JMXDecoratedTestCase.xml

where this is demonstrated:


  | ...
  |    <bean name="Bean" class="org.jboss.test.microcontainer.support.SimpleBeanImpl">
  |       <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="", exposedInterface=org.jboss.test.microcontainer.support.SimpleBean.class)</annotation>
  |    </bean>
  | 
  |    <bean name="Bean1" class="org.jboss.test.microcontainer.support.SimpleBeanImpl">
  |       <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="test:name=NotBean1", exposedInterface=org.jboss.test.microcontainer.support.SimpleBeanImplMBean.class)</annotation>
  |    </bean>
  | 


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

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



More information about the jboss-dev-forums mailing list