avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Lau" <jameslau_3pro_avalon_...@hotmail.com>
Subject Re: Lifecycleable interface
Date Fri, 12 Apr 2002 09:23:34 GMT
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" <paul_hammant@yahoo.com>
To: "Avalon" <avalon-dev@jakarta.apache.org>
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:avalon-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:avalon-dev-help@jakarta.apache.org>
>
>

--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message