Xindice API

org.apache.xindice.server.standard
Class StdComponentManager

java.lang.Object
  |
  +--org.apache.xindice.server.standard.StdComponentManager
All Implemented Interfaces:
ComponentManager, Configurable, Disposable, KernelAccess

public final class StdComponentManager
extends java.lang.Object
implements Configurable, ComponentManager, KernelAccess, Disposable

StdComponentManager


Constructor Summary
StdComponentManager()
           
 
Method Summary
 boolean addComponent(ScriptComponent component)
          addComponent adds a ScriptComponent to the ComponentManager using the name returned by the ScriptComponent.
 boolean addComponent(ScriptComponent component, java.lang.String name)
          addComponent adds a ScriptComponent to the ComponentManager by name.
 void dispose()
          dispose disposes of the object instance.
 ScriptComponent getComponent(java.lang.String name)
          getComponent returns a component of the specified name.
 Configuration getConfig()
          getConfig retrieves the configuration information for the Configurable object instance.
 ScriptFilter[] getFilters(Versioning versioning)
          getFilters returns a set of ScriptFilters for the specified Versioning object.
 boolean removeComponent(java.lang.String name)
          removeComponent removes a ScriptComponent from the ComponentManager.
 void setConfig(Configuration config)
          setConfig sets the configuration information for the Configurable object instance.
 void setKernel(Kernel kernel)
          setKernel provides a Kernel callback interface to the implementing object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdComponentManager

public StdComponentManager()
Method Detail

setKernel

public void setKernel(Kernel kernel)
Description copied from interface: KernelAccess
setKernel provides a Kernel callback interface to the implementing object.
Specified by:
setKernel in interface KernelAccess
Following copied from interface: org.apache.xindice.server.KernelAccess
Parameters:
kernel - the Kernel reference

setConfig

public void setConfig(Configuration config)
Description copied from interface: Configurable
setConfig sets the configuration information for the Configurable object instance.
Specified by:
setConfig in interface Configurable
Following copied from interface: org.apache.xindice.util.Configurable
Parameters:
config - The configuration Node

getConfig

public Configuration getConfig()
Description copied from interface: Configurable
getConfig retrieves the configuration information for the Configurable object instance.
Specified by:
getConfig in interface Configurable
Following copied from interface: org.apache.xindice.util.Configurable
Returns:
The configuration Node

addComponent

public boolean addComponent(ScriptComponent component,
                            java.lang.String name)
Description copied from interface: ComponentManager
addComponent adds a ScriptComponent to the ComponentManager by name.
Specified by:
addComponent in interface ComponentManager
Following copied from interface: org.apache.xindice.server.ComponentManager
Parameters:
component - The ScriptComponent
name - The name to store the ScriptComponent as
Returns:
whether or not the call was successful

addComponent

public boolean addComponent(ScriptComponent component)
Description copied from interface: ComponentManager
addComponent adds a ScriptComponent to the ComponentManager using the name returned by the ScriptComponent.
Specified by:
addComponent in interface ComponentManager
Following copied from interface: org.apache.xindice.server.ComponentManager
Parameters:
component - The ScriptComponent
Returns:
whether or not the call was successful

getComponent

public ScriptComponent getComponent(java.lang.String name)
Description copied from interface: ComponentManager
getComponent returns a component of the specified name.
Specified by:
getComponent in interface ComponentManager
Following copied from interface: org.apache.xindice.server.ComponentManager
Parameters:
name - The name of the ScriptComponent
Returns:
the ScriptComponent

getFilters

public ScriptFilter[] getFilters(Versioning versioning)
Description copied from interface: ComponentManager
getFilters returns a set of ScriptFilters for the specified Versioning object.
Specified by:
getFilters in interface ComponentManager
Following copied from interface: org.apache.xindice.server.ComponentManager
Parameters:
version - The versioning object
Returns:
The set of ScriptFilters

removeComponent

public boolean removeComponent(java.lang.String name)
Description copied from interface: ComponentManager
removeComponent removes a ScriptComponent from the ComponentManager.
Specified by:
removeComponent in interface ComponentManager
Following copied from interface: org.apache.xindice.server.ComponentManager
Parameters:
name - The name of the ScriptComponent
Returns:
whether or not the ScriptComponent was removed

dispose

public void dispose()
Description copied from interface: Disposable
dispose disposes of the object instance.
Specified by:
dispose in interface Disposable

Xindice API

Copyright (c) 1999-2001 The Apache Software Foundation