Xindice API

org.apache.xindice.server
Interface ComponentManager

All Known Implementing Classes:
StdComponentManager

public interface ComponentManager

ComponentManager is an interface that is implemented to handle the management of ScriptComponents. StdComponentManager is the standard implementation of this interface.

See Also:
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.
 ScriptComponent getComponent(java.lang.String name)
          getComponent returns a component of the specified name.
 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.
 

Method Detail

addComponent

public boolean addComponent(ScriptComponent component,
                            java.lang.String name)
addComponent adds a ScriptComponent to the ComponentManager by name.
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)
addComponent adds a ScriptComponent to the ComponentManager using the name returned by the ScriptComponent.
Parameters:
component - The ScriptComponent
Returns:
whether or not the call was successful

getComponent

public ScriptComponent getComponent(java.lang.String name)
getComponent returns a component of the specified name.
Parameters:
name - The name of the ScriptComponent
Returns:
the ScriptComponent

getFilters

public ScriptFilter[] getFilters(Versioning versioning)
getFilters returns a set of ScriptFilters for the specified Versioning object.
Parameters:
version - The versioning object
Returns:
The set of ScriptFilters

removeComponent

public boolean removeComponent(java.lang.String name)
removeComponent removes a ScriptComponent from the ComponentManager.
Parameters:
name - The name of the ScriptComponent
Returns:
whether or not the ScriptComponent was removed

Xindice API

Copyright (c) 1999-2001 The Apache Software Foundation