From: Adrian B. <adr...@jb...> - 2005-11-21 16:02:52
|
On Mon, 2005-11-21 at 10:42, Adrian Brock wrote: > Any other processing would be built upon these simple primitives, > mostly using decorators. For those that are not following the discussions in the MC forum, a "decorator" (named after the GOF pattern) http://c2.com/cgi/wiki?DecoratorPattern is an "aop introduction" that acts during the object's MC lifecyle with access to the contextual metadata to provide additional cross cutting behaviour. Phew! :-) I quote "introduction" because unlike an introduction, it can also act on the main pojo methods, e.g. setting the context classloader during invocations on that pojo. More concrete examples: JNDI binding: <bean name="Whatever"> <annotation name="org.jboss.jndi.Binding">java:/whatever</annotation> </bean> JMX: <bean name="Whatever"> <annotation name="org.jboss.jmx.MBean"> <attribute name="managementInterface">com.acme.WhateverMBean</attribute> </annotation> </bean> -- xxxxxxxxxxxxxxxxxxxxxxxx Adrian Brock Chief Scientist JBoss Inc. xxxxxxxxxxxxxxxxxxxxxxxx |