Rich Mayfield commented on New Feature LOGBACK-719
I am biased to a factory implementation. I offer the following as use cases (they may not be good use cases, but use cases nonetheless):

1) The factory might return singletons for some classes
2) The factory might want to wrap a proxy (java.lang.reflect.Proxy) around the real implementation
3) The factory may deal with multiple bundles, each with its own classloader. As such there isn't just one classloader but several and the factory could deal with a dynamic list of classloaders.

In terms of configuration, would the approach be to have something like:

<property name="logback.onDemandObjectFactory" value="com.acme.MyLogbackObjectFactory"/>

(or classloader broker if we don't go with an object factory).
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
logback-dev mailing list
logback-dev@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-dev

Reply via email to