org.apache.cocoon.components.treeprocessor.sitemap
Class ComponentsSelector
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.core.container.DefaultServiceSelector
org.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 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentsSelector
public ComponentsSelector()
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.