org.apache.james.container.spring.adaptor
Class DefaultServiceManagerFactory

java.lang.Object
  extended by org.apache.james.container.spring.adaptor.DefaultServiceManagerFactory
All Implemented Interfaces:
ServiceManagerFactory, org.springframework.context.ApplicationContextAware

public class DefaultServiceManagerFactory
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware, ServiceManagerFactory

provides a Avalon-style service manager to all components


Constructor Summary
DefaultServiceManagerFactory()
           
 
Method Summary
 org.apache.avalon.framework.service.ServiceManager getInstanceFor(java.lang.String beanName, org.springframework.beans.factory.config.BeanDefinition beanDefinition)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setReplacements(java.util.Map replacements)
          for replacing services without changing vanilla Avalon/Phoenix assembly.xml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServiceManagerFactory

public DefaultServiceManagerFactory()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

getInstanceFor

public org.apache.avalon.framework.service.ServiceManager getInstanceFor(java.lang.String beanName,
                                                                         org.springframework.beans.factory.config.BeanDefinition beanDefinition)
Specified by:
getInstanceFor in interface ServiceManagerFactory

setReplacements

public void setReplacements(java.util.Map replacements)
for replacing services without changing vanilla Avalon/Phoenix assembly.xml

Specified by:
setReplacements in interface ServiceManagerFactory
Parameters:
replacements - - Map, the key indicating the service reference to be replaced, the value indicating the replacement bean


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.