this.authenticator = authenticator;
}
@Override
protected SunHttpConnector createInstance() throws Exception {
GroovyScriptRunner scriptRunner = new GroovyScriptRunner();
SpringVarProducer springVarProducer = new SpringVarProducer();
springVarProducer.setApplicationContext(applicationContext);
scriptRunner.setVarProducer(springVarProducer);
GroovyReplManager replManager = new GroovyReplManager();
replManager.setVarProducer(springVarProducer);
Server server = new Server(scriptRunner, replManager);
SunHttpConnector httpConnector = new SunHttpConnector(server, port, authenticator);
return httpConnector;