You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Paul Hammant <pa...@yahoo.com> on 2001/03/13 23:41:21 UTC
Configurable, ReConfigurable, SelfConfigurable?
Some apps may want to update their own configuration. I presume as one Configuration...
interface SelfConfigurer {
void configure(Configuration);
}
interface SelfConfigurable {
void setSelfConfigurer(SelfConfigurer selfConfigurer);
}
What thought?
-PH
=====
Regards - Paul H
====
CVS -1, Perforce +1
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: Configurable, ReConfigurable, SelfConfigurable?
Posted by Peter Donald <do...@apache.org>.
At 09:51 14/3/01 -0800, Harmeet Bedi wrote:
>----- Original Message -----
>From: "Paul Hammant" <pa...@yahoo.com>
>Subject: Re: Configurable, ReConfigurable, SelfConfigurable?
>
>
>> Ok, I'll put it another way.
>>
>> A server app takes it's config from assembly.xml. If the config is to
>change, from that shipped
>> with it's original sar, is the only way for a person to edit the the file
>and relaunch Avalon or
>> invoke recongigure from outside?
Actually this is a point I came across ages ago. We need to make camelot
distinguish between installing a ServerApplication and deploying a
ServerApplication. So what would happen is you install the SA first - then
use a GUI for Configuration management and then deploy it as ready to go.
>Edit and relaunch seems horrible.
>I think modification of configuration and reconfigure via external
>management interface would be very nice. JMX is mentioned in Avalon todo
>list. Is it very far away ?
JMX is probably the easiest/best way to do it but as yet no one has started
on it ;)
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: Configurable, ReConfigurable, SelfConfigurable?
Posted by Harmeet Bedi <hb...@yahoo.com>.
----- Original Message -----
From: "Paul Hammant" <pa...@yahoo.com>
Subject: Re: Configurable, ReConfigurable, SelfConfigurable?
> Ok, I'll put it another way.
>
> A server app takes it's config from assembly.xml. If the config is to
change, from that shipped
> with it's original sar, is the only way for a person to edit the the file
and relaunch Avalon or
> invoke recongigure from outside?
Edit and relaunch seems horrible.
I think modification of configuration and reconfigure via external
management interface would be very nice. JMX is mentioned in Avalon todo
list. Is it very far away ?
>
> There's a guy porting his FTP server to Avalon. The "before" version was
excellent, built-in
> addition of users etc. If the only way from him to save such config
changes is to use the
> persistence store, then I suspect he'll abandon the porting effort, as it
was much better before
> he changed.
Would james.services.UsersRepository not do the job? I am new to
Avalon/James (lurking for a few months) so it may be a naive question. Is
User Repository solid or likely to be redone ?
FTP block would be awesome to have. Is the code available ?
Regards, great work and Avalon is a good teacher. :-)
Harmeet
>
>
> --- "Harmeet Bedi[yahoo]" <hb...@yahoo.com> wrote: > > Some apps may want
to update their own
> configuration. I presume as one
> > Configuration...
> > > What thought?
> > >
> > > -PH
> > To me an app/component reacts to external configuration stimuli. It can
> > easily ignore or do things differently if it so chooses. So not sure
what
> > would be the gain would be.
> >
> > Harmeet
> >
> > >
> > > interface SelfConfigurer {
> > > void configure(Configuration);
> > > }
> > >
> > > interface SelfConfigurable {
> > > void setSelfConfigurer(SelfConfigurer selfConfigurer);
> > > }
> > >
> > > What thought?
> > >
> > > -PH
> > >
> > > =====
> > > Regards - Paul H
> > > ====
> > > CVS -1, Perforce +1
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - Buy the things you want at great prices.
> > > http://auctions.yahoo.com/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: Configurable, ReConfigurable, SelfConfigurable?
Posted by Paul Hammant <pa...@yahoo.com>.
Ok, I'll put it another way.
A server app takes it's config from assembly.xml. If the config is to change, from that shipped
with it's original sar, is the only way for a person to edit the the file and relaunch Avalon or
invoke recongigure from outside?
There's a guy porting his FTP server to Avalon. The "before" version was excellent, built-in
addition of users etc. If the only way from him to save such config changes is to use the
persistence store, then I suspect he'll abandon the porting effort, as it was much better before
he changed.
Regards,
- Paul H
--- "Harmeet Bedi[yahoo]" <hb...@yahoo.com> wrote: > > Some apps may want to update their own
configuration. I presume as one
> Configuration...
> > What thought?
> >
> > -PH
> To me an app/component reacts to external configuration stimuli. It can
> easily ignore or do things differently if it so chooses. So not sure what
> would be the gain would be.
>
> Harmeet
>
> >
> > interface SelfConfigurer {
> > void configure(Configuration);
> > }
> >
> > interface SelfConfigurable {
> > void setSelfConfigurer(SelfConfigurer selfConfigurer);
> > }
> >
> > What thought?
> >
> > -PH
> >
> > =====
> > Regards - Paul H
> > ====
> > CVS -1, Perforce +1
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - Buy the things you want at great prices.
> > http://auctions.yahoo.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: Configurable, ReConfigurable, SelfConfigurable?
Posted by "Harmeet Bedi[yahoo]" <hb...@yahoo.com>.
> Some apps may want to update their own configuration. I presume as one
Configuration...
> What thought?
>
> -PH
To me an app/component reacts to external configuration stimuli. It can
easily ignore or do things differently if it so chooses. So not sure what
would be the gain would be.
Harmeet
>
> interface SelfConfigurer {
> void configure(Configuration);
> }
>
> interface SelfConfigurable {
> void setSelfConfigurer(SelfConfigurer selfConfigurer);
> }
>
> What thought?
>
> -PH
>
> =====
> Regards - Paul H
> ====
> CVS -1, Perforce +1
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: Configurable, ReConfigurable, SelfConfigurable?
Posted by Berin Loritsch <bl...@apache.org>.
Paul Hammant wrote:
>
> Some apps may want to update their own configuration. I presume as one Configuration...
>
> interface SelfConfigurer {
> void configure(Configuration);
> }
>
> interface SelfConfigurable {
> void setSelfConfigurer(SelfConfigurer selfConfigurer);
> }
>
> What thought?
If a Component want's to manage its own configuration (which is not too uncommon),
then they do not need to implement the Configurable interface. That interface
is used to configure child elements.
For example, in Cocoon, the main object does not implement the Configurable interface.
It uses a method called configure() (no arguments) to separate out the main config
code.
Bottom line is that it is up to the Component builder to decide how to handle
self configuration.
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org