org.apache.cocoon.sitemap
Class DefaultSitemapComponentSelector

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLogEnabled
        |
        +--org.apache.avalon.excalibur.component.AbstractDualLogEnabled
              |
              +--org.apache.avalon.excalibur.component.ExcaliburComponentSelector
                    |
                    +--org.apache.cocoon.sitemap.DefaultSitemapComponentSelector
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.ComponentSelector, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.excalibur.instrument.Instrumentable, org.apache.excalibur.instrument.InstrumentManageable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.excalibur.logger.LogKitManageable, OutputComponentSelector, org.apache.avalon.excalibur.component.RoleManageable, SitemapComponentSelector, org.apache.avalon.framework.thread.ThreadSafe

public class DefaultSitemapComponentSelector
extends org.apache.avalon.excalibur.component.ExcaliburComponentSelector
implements SitemapComponentSelector

Default component manager for Cocoon's sitemap components.

Version:
CVS $Id: DefaultSitemapComponentSelector.java,v 1.2 2002/02/22 07:03:55 cziegeler Exp $
Author:
Berin Loritsch, Giacomo Pati

Fields inherited from class org.apache.avalon.excalibur.component.ExcaliburComponentSelector
m_context
 
Fields inherited from interface org.apache.excalibur.instrument.Instrumentable
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY
 
Constructor Summary
DefaultSitemapComponentSelector()
          The conctructors (same as the Avalon ComponentManager)
 
Method Summary
 void addComponent(java.lang.Object hint, java.lang.Class component, org.apache.avalon.framework.configuration.Configuration conf)
           
 void addSitemapComponent(java.lang.Object hint, java.lang.Class component, org.apache.avalon.framework.configuration.Configuration conf, java.lang.String mimeType)
           
 java.lang.String[] getLabels(java.lang.Object hint)
           
 java.lang.String getMimeTypeForHint(java.lang.Object hint)
          Get the MIME type for a given hint.
 boolean hasLabel(java.lang.Object hint, java.lang.String label)
           
 void initialize()
           
 void release(org.apache.avalon.framework.component.Component component)
           
 org.apache.avalon.framework.component.Component select(java.lang.Object hint)
           
 void setParentSelector(SitemapComponentSelector newSelector)
           
 
Methods inherited from class org.apache.avalon.excalibur.component.ExcaliburComponentSelector
addComponentInstance, compose, configure, contextualize, dispose, getChildInstrumentables, getComponentHandler, getComponentHandlers, getInstrumentableName, getInstruments, hasComponent, setInstrumentableName, setInstrumentManager, setLoggerManager, setLogKitManager, setRoleManager
 
Methods inherited from class org.apache.avalon.excalibur.component.AbstractDualLogEnabled
getLogkitLogger, setLogger
 
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
 
Methods inherited from interface org.apache.avalon.framework.component.ComponentSelector
hasComponent
 

Constructor Detail

DefaultSitemapComponentSelector

public DefaultSitemapComponentSelector()
The conctructors (same as the Avalon ComponentManager)
Method Detail

setParentSelector

public void setParentSelector(SitemapComponentSelector newSelector)

select

public org.apache.avalon.framework.component.Component select(java.lang.Object hint)
                                                       throws org.apache.avalon.framework.component.ComponentException
Specified by:
select in interface org.apache.avalon.framework.component.ComponentSelector
Overrides:
select in class org.apache.avalon.excalibur.component.ExcaliburComponentSelector

release

public void release(org.apache.avalon.framework.component.Component component)
Specified by:
release in interface org.apache.avalon.framework.component.ComponentSelector
Overrides:
release in class org.apache.avalon.excalibur.component.ExcaliburComponentSelector

initialize

public void initialize()
Overrides:
initialize in class org.apache.avalon.excalibur.component.ExcaliburComponentSelector

getMimeTypeForHint

public java.lang.String getMimeTypeForHint(java.lang.Object hint)
Description copied from interface: OutputComponentSelector
Get the MIME type for a given hint.
Specified by:
getMimeTypeForHint in interface OutputComponentSelector
Following copied from interface: org.apache.cocoon.components.pipeline.OutputComponentSelector
Parameters:
hint - the component hint
Returns:
the MIME type for this hint, or null.

hasLabel

public boolean hasLabel(java.lang.Object hint,
                        java.lang.String label)
Specified by:
hasLabel in interface SitemapComponentSelector

getLabels

public java.lang.String[] getLabels(java.lang.Object hint)
Specified by:
getLabels in interface SitemapComponentSelector

addComponent

public void addComponent(java.lang.Object hint,
                         java.lang.Class component,
                         org.apache.avalon.framework.configuration.Configuration conf)
                  throws org.apache.avalon.framework.component.ComponentException
Overrides:
addComponent in class org.apache.avalon.excalibur.component.ExcaliburComponentSelector

addSitemapComponent

public void addSitemapComponent(java.lang.Object hint,
                                java.lang.Class component,
                                org.apache.avalon.framework.configuration.Configuration conf,
                                java.lang.String mimeType)
                         throws org.apache.avalon.framework.component.ComponentException,
                                org.apache.avalon.framework.configuration.ConfigurationException


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.