Request to modify net.dpml.magic.project.Context
mcconnell at dpml.net
Sun Dec 19 14:32:02 EST 2004
What is the proposed interface for IndexBuilder?
> -----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
> 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 )
> Any objections with my going ahead with this?
> dev-dpml mailing list
> dev-dpml at lists.ibiblio.org
More information about the dev-dpml