[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Question to users of IMethodBindingListener  XML
Forum Index -> Development
Author Message
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Online

Hi,

IMethodBindingListener allows to centrally register objects that are notified with every roundtrip, that an action listener was called.

We now want to extend the usage of this interface, so that when processing an action event, the whole "expression-stack" is checked for objects support IMethodBindingListener.

Example:
Code:
 When the expression #{d.d_1.XYZUI.onXyz} is called then the following objects are checked if they support IMethodBindingListener:
 
 #{d.d_1.XYZUI}
 #{d.d_1}
 #{d}
 


If the object(s) support IMethodBindingListener then they are called correspondingly. IMethodBindingListener contains:

Code:
 public interface IMethodBindingListener
 {
     public boolean reactOnActionListenerInvokeBefore(MethodBinding mb, ActionEvent event);
     public void reactOnActionListenerInvokeAfter(MethodBinding mb, ActionEvent event);
 }
 


Now, introducing this automated expression-stack-calling could potencially conflict with objects that you so far registered centrally.

Example: if you registered the #{d} object with the exisiting central registration, then #{d} is called twice.

Could you please check if this is the case? If yes, then we would define an additional interface. But maybe we can use the same one and reduce the amount of interfaces...

Thanks! Björn

Björn Müller, CaptainCasa GmbH
krinninger

Power User

Joined: 17/11/2008 21:19:41
Messages: 567
Offline

ok, then i'll start with the first answer

for us, this is no problem at all.
But sounds like an interesting feature we haven't known till now.
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Online

Hi,

we recevied two mail answers as well - no problems were seen so far.

We are not 100% sure if the "expression drill up" is really necessary, so we start with "last bean level" - the interface will be applied for this bean that received the action listener call.

Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team