On Thursday 15 January 2004 17:47, Mu Mike wrote:
> when I use a ServiceSelector this way
>
> Object obj=selector.select(MyService.ROLE+"."+hintOfMySpeicialService);
>
> I got an object of type [EMAIL PROTECTED], when I write this object to String
> using its
> toString() method, it prints [EMAIL PROTECTED],the problem is , I
> can not cast
> obj to MySpecialService! this is really a series problem for me, and I m
> wondering why
> anyone can help me?

I don't know for sure about Fortress, but in Merlin in specific it is not 
allowed, and will not be allowed. A proxy is inserted in between for many 
reasons. I can believe that Fortress does the same thing.

So why is this a problem? It is likely you are violating the IoC and SoC 
principles by doing it, and I would like to know why/how...

Cheers
Niclas

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

Reply via email to