org.apache.james.postage.smtpserver
Class SimpleServiceManager

java.lang.Object
  extended by org.apache.james.postage.smtpserver.SimpleServiceManager
All Implemented Interfaces:
org.apache.avalon.framework.service.ServiceManager

public class SimpleServiceManager
extends java.lang.Object
implements org.apache.avalon.framework.service.ServiceManager

mock-up of ServiceManager


Constructor Summary
SimpleServiceManager()
           
 
Method Summary
 boolean hasService(java.lang.String serviceName)
           
 java.lang.Object lookup(java.lang.String serviceName)
           
 void put(java.lang.String name, java.lang.Object service)
           
 void release(java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleServiceManager

public SimpleServiceManager()
Method Detail

lookup

public java.lang.Object lookup(java.lang.String serviceName)
                        throws org.apache.avalon.framework.service.ServiceException
Specified by:
lookup in interface org.apache.avalon.framework.service.ServiceManager
Throws:
org.apache.avalon.framework.service.ServiceException

hasService

public boolean hasService(java.lang.String serviceName)
Specified by:
hasService in interface org.apache.avalon.framework.service.ServiceManager

put

public void put(java.lang.String name,
                java.lang.Object service)

release

public void release(java.lang.Object object)
Specified by:
release in interface org.apache.avalon.framework.service.ServiceManager


Copyright © 2006-2007 The Apache Software Foundation. All Rights Reserved.