Aspect-Oriented Programming and JBoss
Subject:   Production
Date:   2003-05-30 13:33:15
From:   patriot1burke
Response to: Production

You haven't clearly defined your requirements here. Can you elaborate?

There is a bunch of ways you could implement this pattern.

1) Add a interceptor that broadcasts a generic message "notify(className, methodName, args, response);" and attached via a pointcut

2) Add an interceptor per notification type which is attached via a separate pointcut for each notification type.

3) Use our AOP runtime interface and have subscribers register specifically for notifications on a per instance basis.

With JBoss AOP, you can apply interceptors solely to one specific object instance at runtime. So subscribers can register themselves in the traditional Listener manner, but Publishers don't have to be architected ahead of time to be publishers.

1 to 1 of 1
  1. Production
    2003-05-31 09:36:55  anonymous2 [View]

1 to 1 of 1