[Opensource] Schema attributes

Michael Rimov rimovm at centercomp.com
Mon Mar 24 11:17:18 PST 2003


At 08:40 AM 3/24/2003 -0700, you wrote:

>A co-worker just asked me why are we adding Controllers, DBObjects and 
>other elements in the Schema in the code instead of placing those objects 
>in the expresso-config.xml file.   For example why doe we make calls like
>
>  addJob(com.jcorporate.expresso.ext.job.SendNotice.class);
>                 addJob(com.jcorporate.expresso.services.job.TestJob.class);
> 
>addJob(com.jcorporate.expresso.services.job.ControllerJob.class);
> 
>addJob(com.jcorporate.expresso.services.job.ValidationJob.class);
>
>in the ExpressoSchema.java instead of placing those references in say the 
>expresso-config file?

expresso-config's goal was to be as limited as possible.  Only put in the 
items that are absolutely necessary for the Expresso configuration system 
to bootstrap itself.  Merging Schemas in with Expresso-config are likely to 
cause editing errors where controller security doesn't get set up for one 
particular controller.

So let's talk about the flip side.  There is nothing preventing you from 
creating your own schema definition in an xml file which the system reads 
and then calls the appropriate addDBObject/Job/Controller.  In fact, this 
feature will exist for Expresso 5.1.... more to come soon on this!

HTH!
                                                 -Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20030324/3ae8044e/attachment-0002.htm


More information about the Opensource mailing list