You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by david2 <Da...@l-3comcept.com> on 2007/09/05 23:17:53 UTC

Need to Subclass/Intercept MessagePatternFilter

We need to perform custom processing on the XML filter pattern whenever a
subscription includes an XPath filter.  Currently, Muse'
MessagePatternFilter stores this pattern in a private attribute (_pattern)
that has no getter method.

I tried subclassing MessagePatternFilterHandler, overriding the
newInstance() method to perform the processing, and adding the subclass
handler to the FilterFactory.  However, it looks like the FilterFactory
still uses the default MessagePatternFilterHandler instead of my subclass
handler.  I also thought of intercepting at the SubscriptionManager, but
again was stopped by the private _pattern attribute.

What is the best/preferred way to intercept the XPath string for new
subscriptions in order to perform custom processing?

-David

-- 
View this message in context: http://www.nabble.com/Need-to-Subclass-Intercept-MessagePatternFilter-tf4388165.html#a12511139
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org