This is correct. Note the following:
- string is now the default for an element with no children, so you
can remove that implementation.
- a tag dog will look for class Dog in the same package. So BigDog
should be the only one requiring an implementation here.

- Brett

On 10/7/05, Robert Biernat <[EMAIL PROTECTED]> wrote:
> > > What types of objects can be used as parameters? I assume this has
> > > something to do with what plexus can convert from XML content.
> >
>
> I'm also interested in the rules regarding the types of parameters that can
> be used as parameters, along with what the corresponding xml is supposed to
> look like.
>
> From what I understand so far, for each field/property declared within the
> pom that you want injected into you mojo/mojo parameter, you need to have an
> xml element with the same name as the field/property, and also use the
> "implementation" xml attribute within that element.
>
> i.e
>
> /**
>  * @parameter
> /**
> private Dog dog;
>
>
> <configuration>
>         <dog implementation="some.package.Dog">
>                 <name implementation="java.lang.String">Fred</name>
>         </dog>
> </configuration>
>
> If I wanted to inject in a different Dog implementation I would simply
> specify a different class name as the value of the "implementation"
> attribute
>
> i.e
>
> <configuration>
>         <dog implementation="some.package.BigDog">
>                 <name implementation="java.lang.String">Jimmy</name>
>         </dog>
> </configuration>
>
>
> Maybe this is crap. Please tell me if it is.
>
> Cheers
>
> Rob
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to