[jboss-dev-forums] [JBoss OSGi Development] - Extender Patter vs. LifecycleInterceptors

thomas.diesler@jboss.com do-not-reply at jboss.com
Tue Oct 27 05:42:07 EDT 2009


There is a new blogpost in the diary that discusses Extenders/Interceptors

http://jbossosgi.blogspot.com/2009/10/extender-pattern-vs-lifecycle.html

As far as integration with the MC Framework goes, you can add interceptors as part of the bootstrap config like this


  |   <bean name="WebXMLVerifier" class="org.jboss.osgi.framework.deployers.WebXMLVerifierInterceptor"/>
  | 

Interceptors can of course also be added dynamically via the related LifecycleInterceptorService.

In case of of the MC Framework the interceptor attachment API delegates to the DeploymentUnit, so that interceptor attachments are visible by the deployers and vice versa.

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

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



More information about the jboss-dev-forums mailing list