You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by mat <fo...@gmail.com> on 2007/08/24 15:10:37 UTC

IoHandlerAdapter interacts with business logic class

Can someone tell me how your business logic class interacts with
IoHandlerAdapter? By passing the references to each other? Somehow, I feel a
little bit weird to do so. Any better solution?

Re: IoHandlerAdapter interacts with business logic class

Posted by Mark <el...@gmail.com>.
need more information.  Not sure I understand your situation.

On 8/24/07, mat <fo...@gmail.com> wrote:
>
> Can someone tell me how your business logic class interacts with
> IoHandlerAdapter? By passing the references to each other? Somehow, I feel
> a
> little bit weird to do so. Any better solution?
>



-- 
..Cheers
Mark

Re: IoHandlerAdapter interacts with business logic class

Posted by Niklas Therning <ni...@trillian.se>.
mat wrote:
> Can someone tell me how your business logic class interacts with
> IoHandlerAdapter? By passing the references to each other? Somehow, I feel a
> little bit weird to do so. Any better solution?
>
>   
In my app my IoHandler implementation gets a reference (through an
interface of course) to a business service. Some of the service methods
are asynchronous which means that the service needs to notify the
IoHandler when the operation has finished.  In those cases I use a
callback interface which decouples the service from the IoHandler. The
service is completely independent from MINA.

HTH

-- 
Niklas Therning
www.spamdrain.net