|
||||||||
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
Currently, on demand object building is done by the instantiateByClassName() method (and variants) located in the ch.qos.logback.core.util OptionHelper class. We could refactor the code so that the on demand object building is performed by an instance of an interface, say OnDemandObjectFactory. Logback would ship with a default implementation of this interface. However, it would be possible to override this implementation by registering a different implementation.
All logback components get injected a context. So the most obvious registry point for a custom OnDemandObjectFactory would be a new method in the ch.qos.logback.core.Context interface.