Folks,

I need some help in the Tomcat List.  I am trying to get a few easy 
changes made.  I am not senior, not eloquent, not 'inside' enough to get 
  the message across.  PlEaSe HeLp!!!!

Regards,

- Paul H

-------- Original Message --------
Subject: Re: Todo list for 4.0.2 b2
Date: Wed, 09 Jan 2002 12:00:08 +0000
From: Paul Hammant <[EMAIL PROTECTED]>
To: Tomcat Developers List <[EMAIL PROTECTED]>

Remy,

 >Only the core objects have interfaces. Embedded is a helper object, so 
 >it's not an interface. Just like Catalina is not an interface.
 >By the way, I don't see how having an interface makes it easier to 
work >with Catalina. The only useful thing with interfaces is if you 
want to >extend or reimplement something, because of Java's lack of 
multiple >inheritance.

Not true.  If you want to *secure* your impl from other code.  You could
use three schemes:

1) seperate classloaders for the interfaces and impl

       Catalina Impl        Other Application*
           |                  |
           --------------------
                    |
      System/Boot/Primordial & Catalina 'interfaces'

* that might want to invoke methods in Catalina via its interfaces.

2) Run the Object implementing the interfaces through a DynamicProxy
generator, such that the
Other Application cannot cast to the impl.

3) Combination of (1) and (2) to overcome introspection/serialization
tricks for hacking.

 >Also, if you only want to use Catalina as a service inside a bigger
 >framework, you should use CatalinaService, not Embedded (and no,
 >there's no need for an interface for that either ;-)).

I will try with this.  Two things though:

1) For exactly the same reason, it needs an interface.  I *really*
*need* an interface.

2) CatalinaService exposes less methods than Embedded.  Way less.  I
guess the idea is that to add hosts and webapps, you should not being
doing it inVM via method calls but via a connector.

Regards,

- Paul H



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

Reply via email to