Provided hooks so that plugins may be registered in code in lieu of xml.