org.apache.cocoon.components.language.generator
Class GeneratorSelector

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.avalon.excalibur.component.AbstractDualLogEnabled
          extended by org.apache.avalon.excalibur.component.ExcaliburComponentSelector
              extended by org.apache.cocoon.components.language.generator.GeneratorSelector
All Implemented Interfaces:
RoleManageable, LoggerManageable, LogKitManageable, Disposable, Initializable, Component, ComponentSelector, Composable, Configurable, Contextualizable, LogEnabled, Loggable, ThreadSafe, Instrumentable, InstrumentManageable

public class GeneratorSelector
extends ExcaliburComponentSelector

This interface is the common base of all Compiled Components. This includes Sitemaps and XSP Pages

Version:
$Id: GeneratorSelector.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Berin Loritsch, Vadim Gritsenko

Field Summary
protected  Map componentHandlers
           
protected  Context context
           
protected  ComponentManager manager
          The component manager
static String ROLE
           
protected  RoleManager roles
           
 
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
GeneratorSelector()
           
 
Method Summary
 void addGenerator(ComponentManager newManager, Object hint, Program generator)
           
 void compose(ComponentManager manager)
           
 void contextualize(Context context)
           
 void dispose()
           
 void release(Component component)
           
 void removeGenerator(Object hint)
           
 Component select(Object hint)
           
 void setLoggerManager(LoggerManager logkit)
          Configure the LoggerManager.
 void setLogKitManager(LogKitManager logkit)
          Configure the LogKitManager
 void setRoleManager(RoleManager roleMgr)
           
 
Methods inherited from class org.apache.avalon.excalibur.component.ExcaliburComponentSelector
addComponent, addComponentInstance, canRelease, configure, getChildInstrumentables, getComponentHandler, getComponentHandlers, getInstrumentableName, getInstruments, hasComponent, initialize, setInstrumentableName, setInstrumentManager
 
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
 

Field Detail

ROLE

public static final String ROLE
See Also:
Constant Field Values

manager

protected ComponentManager manager
The component manager


context

protected Context context

roles

protected RoleManager roles

componentHandlers

protected Map componentHandlers
Constructor Detail

GeneratorSelector

public GeneratorSelector()
Method Detail

contextualize

public void contextualize(Context context)
Specified by:
contextualize in interface Contextualizable
Overrides:
contextualize in class ExcaliburComponentSelector

setRoleManager

public void setRoleManager(RoleManager roleMgr)
Specified by:
setRoleManager in interface RoleManageable
Overrides:
setRoleManager in class ExcaliburComponentSelector

setLogKitManager

public void setLogKitManager(LogKitManager logkit)
Configure the LogKitManager

Specified by:
setLogKitManager in interface LogKitManageable
Overrides:
setLogKitManager in class ExcaliburComponentSelector

setLoggerManager

public void setLoggerManager(LoggerManager logkit)
Configure the LoggerManager.

Specified by:
setLoggerManager in interface LoggerManageable
Overrides:
setLoggerManager in class ExcaliburComponentSelector

compose

public void compose(ComponentManager manager)
             throws ComponentException
Specified by:
compose in interface Composable
Overrides:
compose in class ExcaliburComponentSelector
Throws:
ComponentException

select

public Component select(Object hint)
                 throws ComponentException
Specified by:
select in interface ComponentSelector
Overrides:
select in class ExcaliburComponentSelector
Throws:
ComponentException

release

public void release(Component component)
Specified by:
release in interface ComponentSelector
Overrides:
release in class ExcaliburComponentSelector

addGenerator

public void addGenerator(ComponentManager newManager,
                         Object hint,
                         Program generator)
                  throws Exception
Throws:
Exception

removeGenerator

public void removeGenerator(Object hint)

dispose

public void dispose()
Specified by:
dispose in interface Disposable
Overrides:
dispose in class ExcaliburComponentSelector


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.