> > 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