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

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

public class AvalonServiceSelector
extends Object
implements BeanFactoryAware, ServiceSelector

This bean acts like a Avalon ServiceSelector.

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

Field Summary
protected  BeanFactory beanFactory
           
protected  String defaultKey
           
protected  String role
           
 
Constructor Summary
AvalonServiceSelector(String r)
           
 
Method Summary
 boolean isSelectable(Object key)
           
 void release(Object component)
           
 Object select(Object hint)
           
 void setBeanFactory(BeanFactory factory)
           
 void setDefault(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

role

protected final String role

defaultKey

protected String defaultKey

beanFactory

protected BeanFactory beanFactory
Constructor Detail

AvalonServiceSelector

public AvalonServiceSelector(String r)
Method Detail

setBeanFactory

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

setDefault

public void setDefault(String value)

select

public Object select(Object hint)
              throws ServiceException
Specified by:
select in interface ServiceSelector
Throws:
ServiceException
See Also:
ServiceSelector.select(java.lang.Object)

isSelectable

public boolean isSelectable(Object key)
Specified by:
isSelectable in interface ServiceSelector
See Also:
ServiceSelector.isSelectable(java.lang.Object)

release

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

toString

public String toString()
See Also:
Object.toString()


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