org.apache.cocoon.core.container.spring.avalon
Class AvalonServiceManager

java.lang.Object
  extended byorg.apache.cocoon.core.container.spring.avalon.AvalonServiceManager
All Implemented Interfaces:
BeanFactoryAware, ServiceManager

public final class AvalonServiceManager
extends Object
implements ServiceManager, BeanFactoryAware

This bean acts like a Avalon ServiceManager. It just delegates to the underlying bean factory.

Since:
2.2
Version:
$Id: AvalonServiceManager.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
protected  BeanFactory beanFactory
          The bean factory this service manager is defined in.
 
Constructor Summary
AvalonServiceManager()
           
 
Method Summary
 boolean hasService(String role)
           
 Object lookup(String role)
           
 void release(Object component)
           
 void setBeanFactory(BeanFactory beanFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beanFactory

protected BeanFactory beanFactory
The bean factory this service manager is defined in.

Constructor Detail

AvalonServiceManager

public AvalonServiceManager()
Method Detail

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)
                    throws BeansException
Specified by:
setBeanFactory in interface BeanFactoryAware
Throws:
BeansException
See Also:
BeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)

hasService

public boolean hasService(String role)
Specified by:
hasService in interface ServiceManager
See Also:
ServiceManager.hasService(java.lang.String)

lookup

public Object lookup(String role)
              throws ServiceException
Specified by:
lookup in interface ServiceManager
Throws:
ServiceException
See Also:
ServiceManager.lookup(java.lang.String)

release

public void release(Object component)
Specified by:
release in interface ServiceManager
See Also:
ServiceManager.release(java.lang.Object)


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.