Now I glanced over the AbstractComponentHandler class and found that it uses org.apache.excalibur.mpool.ObjectFactory implementation for component construction... would it be enough, if I just added a declaration for this role into my .roles file? Hmm, should check it out...
Neeme
Farr, Aaron wrote:
I believe what you're looking for is the ComponentHandler interface. You can find the current Fortress component handlers in the package:
org.apache.avalon.fortress.impl.handler
(http://avalon.apache.org/api/org/apache/avalon/fortress/impl/handler/packag e-summary.html)
To create your own, extend the AbstractComponentHandler. Then in your roles file, set it up as follows:
<role name="com.myproject.Role"> <component shorthand="myshorthand" class="com.project.impl.Implementation " handler="com.project.handler.MyHandler"/> </role>
You'll probably want to look at the source for the current component handlers as an example.
jaaron
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
