[Json-rpc-java] How to get callback object registered with the JSONBridge?

Arthur Blake arthur.blake at gmail.com
Fri Nov 24 08:09:33 SGT 2006


I stumbled across this method on the JSONRPCBridge bridge, and it's been
working well for that:

    /**
     * Registers a callback to be called before and after method invocation
     *
     * @param callback
     *            The object implementing the InvocationCallback Interface
     * @param contextInterface
     *            The type of transport Context interface the callback is
     *            interested in eg. HttpServletRequest.class for the servlet
     *            transport.
     */
    public void registerCallback(InvocationCallback callback, Class
contextInterface)

The callback registered can either be an implementor of InvocationCallback
(to intercept method calls pre & post) or an ErrorInvocationCallback if you
want to intercept exceptions as well.

On 11/23/06, Mike Wannamaker <mwannama at opentext.com> wrote:
>
>
>
> How to I get a callback object to be registered with the bridge to be
> invoked pre/post method invocation?  Is this a configuration setting or
> do I have to override something?
>
>
>
>
>   _____
>
> Mike Wannamaker
> Senior Software Developer, Kingston R&D
> Open Text Corporation
>
> Phone: 613-548-4355 x4535
> Fax: 613-548-7801
>
>   _____
>
> The market leader in providing Enterprise Content Management solutions.
> <http://www.opentext.com/> www.opentext.com
>
> This e-mail is protected by domestic and international copyright laws and
> treaties and is the property of Open Text Corporation, it may contain
> confidential and/or trade secret information of the Open Text Corporation
> and/or its subsidiaries (OTC), and may be subject to legal privilege in
> favor of OTC. This e-mail may only be lawfully received, accessed,
> displayed
> on a computer screen, printed, copied, and/or used by the specific
> addressee(s) named above ("Authorized Recipient") for the purpose for
> which
> it was sent by OTC. All other rights and licenses to this e-mail are fully
> reserved to OTC. If you are not an Authorized Recipient, you are required
> to
> immediately delete this e-mail in its entirety without printing, copying,
> using, and/or re-transmitting this e-mail, either in whole or in part. The
> transmission of this e-mail by OTC is not to be construed as a waiver by
> OTC
> and/or the individual sending this e-mail on behalf of OTC of any of their
> respective rights or privileges at law or otherwise, howsoever arising.
>
>
>
> _______________________________________________
> Json-rpc-java mailing list
> Json-rpc-java at oss.metaparadigm.com
> http://oss.metaparadigm.com/mailman/listinfo/json-rpc-java
>


More information about the Json-rpc-java mailing list