private volatile ServletContextListener child;
private volatile ServletContextEvent sce;
public void contextInitialized(ServletContextEvent sce) {
final IConfig scConfig = new ServletContextConfig(sce.getServletContext());
final String prefix = "RubyListener." + getClass().getSimpleName() + ".";
listenerConfig = new PrefixedConfig(prefix, scConfig);
final IConfig config = new ChainedConfig(listenerConfig, scConfig);
this.sce = sce;
factory = Util.getFactory(config, Util.RESTARTABLE_RUBY_FACTORY);
factory.reference(this);
child = factory.makeListener(listenerConfig);