James,

I think that in the end, the guys have a point in that this does not fit 
Phoenix very well.  It does sorta break the IoC idea.  A redeeming pont 
is that the way Jeskop mounts apps that are largely already writen there 
is a lot of breaking of IoC going on inside the scope of that hosted 
app.  As such, and becase of the hot-pluggable nature, I am going to 
create the interface after all, but inside Jesktop.

- Paul

>Paul,
>
>As an application developer, I am fully appreciate what you are going to do.
>
>Phoenix has a drawback as a server/container of other application
>containers(i.e. serlvet, EJB, Jesktop etc..). It doesn't provide a simple,
>united way to allow applications(i.e., a servlet deployed in a serlvet
>engine contained in phoenix) to communicate with the phoenix kernel, other
>sars,  and other blocks assemble within the same sar.
>
>I hope in the future, I can answer the question 'Why deploy a servlet in Jo!
>running inside Phoenix, but not a standalone Jo! environment' as 'The
>servlet can utilize services provided by other phoenix blocks'(The Beauty of
>Phoenix).
>
>James Lau
>
>----- Original Message -----
>From: "Paul Hammant" <[EMAIL PROTECTED]>
>To: "Avalon" <[EMAIL PROTECTED]>
>Sent: Wednesday, April 10, 2002 8:59 PM
>Subject: Lifecycleable interface
>
>
>>I am about to do some more work on Jesktop (given there is more
>>
>competition currently).  Nicola
>
>>Ken suggested that Jesktop could benefit from general services and I am
>>
>inclided to do that, but
>
>>maybe there is a case for a hot-puggable system like Jesktop to have a
>>
>Lifecycleable api.  As this
>
>>possibly applies to Avalon in genral. As such, I'd like to propose it here
>>
>:
>
>>interface Lifecycleable {
>>  // int getStage(); // maybe ?
>>  String getLifecycleInterface();
>>  void startupLifecycle(Object obj);
>>  void shutdownLifecycle(Object obj);
>>}
>>
>>DefaultLogEnabledLifecyclable extends AbstractLogEnabled implemnents
>>
>Lifecyclable{
>
>>  public String getLifecycleInterface() {
>>    retrurn "org.apache.avalon.framework.LogEnabled";
>>  }
>>  public void startupLifecycle(Object obj) {
>>    ((LogEnabled) obj).enableLogging(getLogger());
>>  }
>>  public void shutdownLifecycle(Object obj) {
>>    ((LogEnabled) obj).enableLogging(null);  //maybe
>>  }
>>}
>>
>>And similar for Iniializable, Startable, Dooable, Blahable...
>>
>>Thoughts?
>>
>>- Paul
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Everything you'll ever need on one web page
>>from News and Sport to Email and Music Charts
>>http://uk.my.yahoo.com
>>
>>--
>>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]>
>
>
>




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

Reply via email to