org.apache.cocoon.components.treeprocessor.sitemap
Class ComponentsSelector

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.core.container.DefaultServiceSelector
          extended byorg.apache.cocoon.components.treeprocessor.sitemap.ComponentsSelector
All Implemented Interfaces:
Configurable, LogEnabled, Preloadable, Serviceable, ServiceSelector, ThreadSafe

public class ComponentsSelector
extends DefaultServiceSelector

Component selector for sitemap components.

Version:
CVS $Id: ComponentsSelector.java 154898 2005-02-22 21:54:48Z cziegeler $

Nested Class Summary
 
Nested classes inherited from class org.apache.cocoon.core.container.DefaultServiceSelector
DefaultServiceSelector.Factory
 
Field Summary
 
Fields inherited from class org.apache.cocoon.core.container.DefaultServiceSelector
DEFAULT_HINT
 
Constructor Summary
ComponentsSelector()
           
 
Method Summary
 void configure(Configuration config)
           
protected  String getClassAttributeName()
          Get the attribute for class names.
protected  String getComponentInstanceName()
          Return the component instance name according to the selector role (e.g.
 void release(Object component)
          Override parent to implement support for GeneratorFactory, TransformerFactory, and SerializerFactory.
 Object select(Object hint)
          Override parent to implement support for GeneratorFactory, TransformerFactory, and SerializerFactory.
 
Methods inherited from class org.apache.cocoon.core.container.DefaultServiceSelector
getDefaultKeyAttributeName, isSelectable, service, setRole, setRoleManager
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentsSelector

public ComponentsSelector()
Method Detail

getComponentInstanceName

protected String getComponentInstanceName()
Return the component instance name according to the selector role (e.g. "action" for "org.apache.cocoon.acting.Action").

Overrides:
getComponentInstanceName in class DefaultServiceSelector
Returns:
null, but can be changed by subclasses

getClassAttributeName

protected String getClassAttributeName()
Get the attribute for class names. This is "src" for known roles, and "class" (the default) for other roles.

Overrides:
getClassAttributeName in class DefaultServiceSelector
Returns:
"class", but can be changed by subclasses

configure

public void configure(Configuration config)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Overrides:
configure in class DefaultServiceSelector
Throws:
ConfigurationException

select

public Object select(Object hint)
              throws ServiceException
Override parent to implement support for GeneratorFactory, TransformerFactory, and SerializerFactory.

Specified by:
select in interface ServiceSelector
Overrides:
select in class DefaultServiceSelector
Throws:
ServiceException

release

public void release(Object component)
Override parent to implement support for GeneratorFactory, TransformerFactory, and SerializerFactory.

Specified by:
release in interface ServiceSelector
Overrides:
release in class DefaultServiceSelector


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.