This thread worries me. Mailets and Matchers are completely decoupled, at the moment. Giving a Matcher a reference to its Mailet (or vice versa) will lead to the coupling of the two. We will end up with Mailets that only work with a particuler Matcher.

What is the benefit that you are after? Is it really worth making this sacrifice for? Isn't there another way to achieve it?

ADK

Danny Angus wrote:

No,
Although this whole area is the subject of change at the moment.

d.


-----Original Message-----
From: Mark Imel [mailto:[EMAIL PROTECTED]]
Sent: 14 February 2003 00:29
To: James Developers List
Subject: Re: Obtaining a reference to a mailet


You're correct my question is weird. I should have double checked.
I meant to say: Is there a way that my *matcher* can obtain a reference to
its coupled mailet?

Sorry about the typo...


----- Original Message -----
From: "Kenny Smith" <[EMAIL PROTECTED]>
To: "James Developers List" <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 1:51 PM
Subject: Re: Obtaining a reference to a mailet



Hi Mark,

The question seems weird... basic Java (all objects, not just mailets)
gives you a 'this' reference which is a reference to your object from
within... maybe you're asking a different question?

Kenny Smith


Mark Imel wrote:


When my custom mailet/matcher pair are instantiated and initialized,
is there a way for my mailet to obtain a reference to the mailet?

And, if not at initialization time, can i obtain a reference at run

time?

Thanks,
--Mark Imel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to