Request to modify net.dpml.magic.project.Context

Stephen McConnell mcconnell at dpml.net
Sun Dec 19 14:32:02 EST 2004


Sounds good.
What is the proposed interface for IndexBuilder?
Steve.



> -----Original Message-----
> From: dev-dpml-bounces at lists.ibiblio.org [mailto:dev-dpml-
> bounces at lists.ibiblio.org] On Behalf Of David Leangen
> Sent: 19 December 2004 20:29
> To: DPML Dev
> Subject: Request to modify net.dpml.magic.project.Context
> 
> 
> I'd like to make some changes in this class.
> 
> I want to be able to inject my own custom IndexBuilder. To do this, I
> propose making an interface "IndexBuilder", and turning the current
> "IndexBuilder" class into "DefaultIndexBuilder" that implements the
new
> "IndexBuilder".
> 
> I guess one way of injecting the IndexBuilder is to change the current
> default constructor to this:
> 
>     public Context( Project project ) throws BuildException
>     {
>         this(project, new DefaultIndexBuilder());
>     }
> 
> 
> and moving all the stuff currently in this constructor to this:
> 
>     public Context( Project project, IndexBuilder indexBuilder )
throws
> BuildException
> 
> 
> 
> Any objections with my going ahead with this?
> 
> 
> Thanks!
> 
> 
> _______________________________________________
> dev-dpml mailing list
> dev-dpml at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/dev-dpml




More information about the dev-dpml mailing list