Injects the server factory into plugins before they are activated.