1 19 20 package org.apache.james.imapserver.phoenix; 21 22 import org.apache.avalon.framework.service.ServiceException; 23 import org.apache.avalon.framework.service.ServiceManager; 24 import org.apache.avalon.framework.service.Serviceable; 25 import org.apache.james.imapserver.processor.main.DefaultImapProcessorFactory; 26 import org.apache.james.mailboxmanager.manager.MailboxManagerProvider; 27 import org.apache.james.services.UsersRepository; 28 29 public class PhoenixImapProcessorFactory extends DefaultImapProcessorFactory implements Serviceable { 30 31 public void service(ServiceManager serviceManager) throws ServiceException { 32 UsersRepository usersRepository = ( UsersRepository ) serviceManager. 33 lookup( "org.apache.james.services.UsersRepository" ); 34 MailboxManagerProvider mailboxManagerProvider = 35 (MailboxManagerProvider) serviceManager.lookup("org.apache.james.mailboxmanager.manager.MailboxManagerProvider"); 36 configure(usersRepository, mailboxManagerProvider); 37 } 38 39 } 40 | Popular Tags |