IDependOn-Set: 1
IDependOn-Set: 290
IDependOn-Set: 311
IDependOn-Set: 328
IDependOn-Set: 54
LastModifiedSecs: 938323609
Parent: 54
SequenceNumber: 6
Title: How do I send parameters to a producer
Part: 0
Author-Set: brett@knightsofthenet.com
LastModifiedSecs: 938323609
Type: monospaced
Lines: 12
I'd like to be able to pass a custom producer the path to a configuration file. If I implement Configurable would that do the trick? What would I have to add to the Cocoon.properties file in order to pass at least a property to my custom producer?

Yes it did.

/* Add producer.myProducer.property in Cocoon.properties 
** The preceding producer get's it sent along to the producer factory
** make myProducer implement Configurable and give it an init method.
*/

public void init(Configurations conf) {
        this.myProperty = (String) conf.get("myProducer.property");
}
EndPart: 0
