Andrei Ivanov wrote:
>Hi, ok, with next release :-) damned deadlines...
>Btw, are there any examples you recommend to look at to start with
>ServiceManager and Serviceable?
>
>
ServiceManager is semantically equivalent to ComponentManager. They
both have a lookup and relase operation. The only significant
difference is that code written for a component manager may narrow an
object to Component - whereas code for a ServiceManager allows
java.lang.Object.
Rolling over is easy: (a) replace Composable with Serviceable, (b)
replace the compose operation and ComponentException with service and
ServiceException and update the imut argement to be a ServiceManager
(c) replace any ComponentManger references with ServiceManager, (d)
check for any other org.apache.avalon.component imports and handle as
appropriate.
Cheers, Steve.
>Andrei
>
>----- Original Message -----
>From: "Peter Donald" <[EMAIL PROTECTED]>
>To: "Avalon-Phoenix Developers List" <[EMAIL PROTECTED]>
>Sent: Wednesday, May 22, 2002 4:37 PM
>Subject: Re: Block interface question...
>
>
>On Wed, 22 May 2002 23:38, Andrei Ivanov wrote:
>
>
>>Heh, not that easy, removed one, compiled and got error:
>>
>> Incompatible type for method. Explicit cast needed to convert...
>>
>>when
>>
>>compMgr.put( MyClass.ROLE, this);
>>
>>shall I replace Block with Component?
>>
>>
>
>I would recomend you move to using ServiceManager and Serviceable rather
>than
>ComponentManager if it is possible.
>
>
>
>>Andrei
>>
>>----- Original Message -----
>>From: "Peter Donald" <[EMAIL PROTECTED]>
>>To: "Avalon-Phoenix Developers List"
>><[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 4:27
>>PM
>>Subject: Re: Block interface question...
>>
>>On Wed, 22 May 2002 23:29, Andrei Ivanov wrote:
>>
>>
>>>Hi, since it has been deprecated what shall I do with my code, just
>>>remove Block from every place?
>>>
>>>
>>Yep.
>>
>>
>
>--
>Cheers,
>
>Peter Donald
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
--
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]>