Nicola Ken Barozzi wrote:

>
> Leo Sutic wrote:
> ...
>
>> MicroContainer does not return a service instance, but a proxy
>> implementing
>> all of the service instance's interfaces. 
>
>
> IMHO we should always handle a proxy, at least for security reasons.
> Proxies (however created, personally I build java code automatically 
> that is compiled on startup), prevent the user from casting to another 
> type, which could be a security problem.
>
> If we make components created by factories that can (and IMHO should) 
> return proxies, it's cool :-)
>
Proxies are cool - but there are some situations where this isn't 
possible (e.g. a class which is acting as a proxy to pluggable 
implementation - e.g. org.omg.CORBA.ORB). So just a short note saying 
Yes - I agree - and a little flag saying this isn't necessarily a "every 
case" possibility so some thinking will be needed.

Cheers, Steve.

-- 

Stephen J. McConnell

OSM SARL
digital products for a global economy
mailto:[EMAIL PROTECTED]
http://www.osm.net




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

Reply via email to