head	1.9;
access;
symbols;
locks
	nobody:1.9; strict;
comment	@# @;


1.9
date	99.10.20.02.05.17;	author nobody;	state Exp;
branches;
next	1.8;

1.8
date	99.09.26.05.26.49;	author nobody;	state Exp;
branches;
next	1.7;

1.7
date	99.09.26.05.26.27;	author nobody;	state Exp;
branches;
next	1.6;

1.6
date	99.09.26.05.25.51;	author nobody;	state Exp;
branches;
next	1.5;

1.5
date	99.09.26.05.24.56;	author nobody;	state Exp;
branches;
next	1.4;

1.4
date	99.09.26.05.22.43;	author nobody;	state Exp;
branches;
next	1.3;

1.3
date	99.09.26.05.21.10;	author nobody;	state Exp;
branches;
next	1.2;

1.2
date	99.09.26.05.20.05;	author nobody;	state Exp;
branches;
next	1.1;

1.1
date	99.09.26.05.20.03;	author nobody;	state Exp;
branches;
next	;


desc
@null
@


1.9
log
@null
@
text
@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
@


1.8
log
@null
@
text
@d4 1
@


1.7
log
@null
@
text
@d5 1
a5 1
LastModifiedSecs: 938323587
d7 1
a7 1
SequenceNumber: 5
d11 2
a12 1
LastModifiedSecs: 938323587
@


1.6
log
@null
@
text
@d5 1
a5 1
LastModifiedSecs: 938323551
d7 1
a7 1
SequenceNumber: 4
d11 3
a13 6
LastModifiedSecs: 938323551
Lines: 15
> 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?
@


1.5
log
@null
@
text
@d5 1
a5 1
LastModifiedSecs: 938323496
d7 1
a7 1
SequenceNumber: 3
d11 2
a12 2
LastModifiedSecs: 938323496
Lines: 16
a13 1
> 
@


1.4
log
@null
@
text
@d5 1
a5 1
LastModifiedSecs: 938323363
d7 1
a7 1
SequenceNumber: 2
d11 2
a12 2
LastModifiedSecs: 938323363
Lines: 14
a19 1
// Add producer.myProducer.property in Cocoon.properties 
d21 4
a24 1
// make myProducer implement Configurable
@


1.3
log
@null
@
text
@d5 1
a5 1
LastModifiedSecs: 938323270
d7 1
a7 1
SequenceNumber: 1
d9 19
@


1.2
log
@null
@
text
@d5 1
a5 1
LastModifiedSecs: 938323203
d7 2
a8 2
SequenceNumber: 0
Title: New Item
@


1.1
log
@null
@
text
@d2 1
@
