You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Peter Donald <pe...@apache.org> on 2002/11/09 09:26:33 UTC

Creator Lifecycle extension

Hi,

Currently the Creator extension gets run halfway through the startup phase. 
Where most of the other lifecycle extensions occur at the start or end of the 
phases. Personally I think that is the way it should be but Fortress 
disagrees :)

So is there any overiding reason why creation is handled differently from all 
the other extensions or is it just happenstance? Can I fix it and place the 
creation intersection point at the end of the startup phase?

-- 
Cheers,

Peter Donald
-----------------------------------------------------
When a stupid man is doing something he's ashamed of, 
he always declares that it is his duty.
					George Bernard Shaw 
-----------------------------------------------------


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Creator Lifecycle extension

Posted by Stephen McConnell <mc...@apache.org>.

Peter Donald wrote:

>Hi,
>
>Currently the Creator extension gets run halfway through the startup phase. 
>Where most of the other lifecycle extensions occur at the start or end of the 
>phases. Personally I think that is the way it should be but Fortress 
>disagrees :)
>

The create extension interception point occurs as the last action pror 
to initialization of the component.  This is consitent across all 
containers implementing the extension framework.

>
>So is there any overiding reason why creation is handled differently from all 
>the other extensions or is it just happenstance? 
>

Yes - there is an overriding reason - basically a creation time 
extension falls into the same family of component/container interactions 
that we see with enableLogging, contextaulization, configuration, 
parmeterization, servicing.  The all concern the establishment of the 
appropriate component state *prior* to the initialization of the 
component.  A component implementation can then handle its own internal 
verification of state during the initilization stage.

>Can I fix it and place the 
>creation intersection point at the end of the startup phase?
>

You could, but you would breaking the implementation ;-)

Cheers, Steve.

>
-- 

Stephen J. McConnell

OSM SARL
digital products for a global economy
mailto:mcconnell@osm.net
http://www.osm.net




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Creator Lifecycle extension

Posted by Stephen McConnell <mc...@apache.org>.

Berin Loritsch wrote:

>Creator was set to act *just before* Initializable.initialize().
>At least this is what I spoke of every time.  The only other
>implementation of lifecycle extensions was Merlin.  Is there any
>compelling reason why it wasn't the same?
>  
>

It is the same.
Both Merlin and Fortress invoke this as the last action pror to 
initilization.

Cheers, Steve.

>The reason that Creator happens just before initialize() is
>because initialize is (other than start()) the last event that
>the component receives.  Also, the initialize() method is the
>perfect place to deal with anything passed in while the component
>is being initialized.
>
>On the same token, the Destructor (or whatever it is called)
>should be called between Startable.stop() and Disposable.dispose().
>
>  
>
>>-----Original Message-----
>>From: Peter Donald [mailto:peter@apache.org] 
>>Sent: Saturday, November 09, 2002 3:27 AM
>>To: avalon-dev@jakarta.apache.org
>>Subject: Creator Lifecycle extension
>>
>>
>>Hi,
>>
>>Currently the Creator extension gets run halfway through the 
>>startup phase. 
>>Where most of the other lifecycle extensions occur at the 
>>start or end of the 
>>phases. Personally I think that is the way it should be but Fortress 
>>disagrees :)
>>
>>So is there any overiding reason why creation is handled 
>>differently from all 
>>the other extensions or is it just happenstance? Can I fix it 
>>and place the 
>>creation intersection point at the end of the startup phase?
>>
>>-- 
>>Cheers,
>>
>>Peter Donald
>>-----------------------------------------------------
>>When a stupid man is doing something he's ashamed of, 
>>he always declares that it is his duty.
>>					George Bernard Shaw 
>>-----------------------------------------------------
>>
>>
>>--
>>To unsubscribe, e-mail:   
>><mailto:avalon-dev-> unsubscribe@jakarta.apache.org>
>>For 
>>additional commands, 
>>e-mail: <ma...@jakarta.apache.org>
>>
>>    
>>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>  
>

-- 

Stephen J. McConnell

OSM SARL
digital products for a global economy
mailto:mcconnell@osm.net
http://www.osm.net




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Creator Lifecycle extension

Posted by Berin Loritsch <bl...@apache.org>.
Creator was set to act *just before* Initializable.initialize().
At least this is what I spoke of every time.  The only other
implementation of lifecycle extensions was Merlin.  Is there any
compelling reason why it wasn't the same?

The reason that Creator happens just before initialize() is
because initialize is (other than start()) the last event that
the component receives.  Also, the initialize() method is the
perfect place to deal with anything passed in while the component
is being initialized.

On the same token, the Destructor (or whatever it is called)
should be called between Startable.stop() and Disposable.dispose().

> -----Original Message-----
> From: Peter Donald [mailto:peter@apache.org] 
> Sent: Saturday, November 09, 2002 3:27 AM
> To: avalon-dev@jakarta.apache.org
> Subject: Creator Lifecycle extension
> 
> 
> Hi,
> 
> Currently the Creator extension gets run halfway through the 
> startup phase. 
> Where most of the other lifecycle extensions occur at the 
> start or end of the 
> phases. Personally I think that is the way it should be but Fortress 
> disagrees :)
> 
> So is there any overiding reason why creation is handled 
> differently from all 
> the other extensions or is it just happenstance? Can I fix it 
> and place the 
> creation intersection point at the end of the startup phase?
> 
> -- 
> Cheers,
> 
> Peter Donald
> -----------------------------------------------------
> When a stupid man is doing something he's ashamed of, 
> he always declares that it is his duty.
> 					George Bernard Shaw 
> -----------------------------------------------------
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:avalon-dev-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>