Modified: james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPServer.java URL: http://svn.apache.org/viewvc/james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPServer.java?rev=688688&r1=688687&r2=688688&view=diff ============================================================================== --- james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPServer.java (original) +++ james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPServer.java Mon Aug 25 02:48:29 2008 @@ -32,6 +32,7 @@ import org.apache.james.api.user.UsersRepository; import org.apache.james.services.MailServer; import org.apache.james.socket.AbstractJamesService; +import org.apache.james.socket.ProtocolHandler; import org.apache.mailet.MailetContext; /** @@ -273,24 +274,14 @@ } /** - * @see org.apache.avalon.excalibur.pool.ObjectFactory#newInstance() + * @see org.apache.james.socket.AbstractJamesService#newProtocolHandlerInstance() */ - public Object newInstance() throws Exception { + public ProtocolHandler newProtocolHandlerInstance() { SMTPHandler theHandler = new SMTPHandler(); //pass the handler chain to every SMTPhandler theHandler.setHandlerChain(handlerChain); - return theHandler; } - - /** - * @see org.apache.avalon.excalibur.pool.ObjectFactory#getCreatedClass() - */ - public Class getCreatedClass() { - return SMTPHandler.class; - } - - /** * A class to provide SMTP handler configuration to the handlers
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
