org.hippoecm.hst.core.container
Class HstComponentRegistryImpl

java.lang.Object
  extended by org.hippoecm.hst.core.container.HstComponentRegistryImpl
All Implemented Interfaces:
HstComponentRegistry

public class HstComponentRegistryImpl
extends Object
implements HstComponentRegistry

HstComponentRegistryImpl

Version:
$Id: HstComponentRegistryImpl.java 24011 2010-09-22 08:53:07Z aschrijvers $

Field Summary
protected  Map<HstContainerConfig,Map<String,org.hippoecm.hst.core.container.HstComponentRegistryImpl.HstComponentHolder>> servletConfigComponentsMap
           
 
Constructor Summary
HstComponentRegistryImpl()
           
 
Method Summary
 HstComponent getComponent(HstContainerConfig requestContainerConfig, String componentId)
          Returns the registered HstComponent.
protected  Map<String,org.hippoecm.hst.core.container.HstComponentRegistryImpl.HstComponentHolder> getServletConfigComponentsMap(HstContainerConfig requestContainerConfig, boolean create)
           
 void registerComponent(HstContainerConfig requestContainerConfig, String componentId, HstComponent component)
          Registers the HstComponent.
 void unregisterAllComponents()
          Unregisters all the HstComponents.
 void unregisterComponent(HstContainerConfig requestContainerConfig, String componentId)
          Unregister the HstComponent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servletConfigComponentsMap

protected Map<HstContainerConfig,Map<String,org.hippoecm.hst.core.container.HstComponentRegistryImpl.HstComponentHolder>> servletConfigComponentsMap
Constructor Detail

HstComponentRegistryImpl

public HstComponentRegistryImpl()
Method Detail

getComponent

public HstComponent getComponent(HstContainerConfig requestContainerConfig,
                                 String componentId)
Description copied from interface: HstComponentRegistry
Returns the registered HstComponent. The key is the pair of container configuration and component ID.

If the component is not found, then it will return null.

Specified by:
getComponent in interface HstComponentRegistry
Parameters:
requestContainerConfig - the container configuration
componentId - the component ID
Returns:
the HstComponent registered with the key pair.

registerComponent

public void registerComponent(HstContainerConfig requestContainerConfig,
                              String componentId,
                              HstComponent component)
Description copied from interface: HstComponentRegistry
Registers the HstComponent. The key is the pair of container configuration and component ID.

Specified by:
registerComponent in interface HstComponentRegistry
Parameters:
requestContainerConfig - the container configuration
componentId - the component ID

unregisterComponent

public void unregisterComponent(HstContainerConfig requestContainerConfig,
                                String componentId)
Description copied from interface: HstComponentRegistry
Unregister the HstComponent. The key is the pair of container configuration and component ID.

Specified by:
unregisterComponent in interface HstComponentRegistry
Parameters:
requestContainerConfig - the container configuration
componentId - the component ID

unregisterAllComponents

public void unregisterAllComponents()
Description copied from interface: HstComponentRegistry
Unregisters all the HstComponents.

Specified by:
unregisterAllComponents in interface HstComponentRegistry

getServletConfigComponentsMap

protected Map<String,org.hippoecm.hst.core.container.HstComponentRegistryImpl.HstComponentHolder> getServletConfigComponentsMap(HstContainerConfig requestContainerConfig,
                                                                                                                                boolean create)


Copyright © 2008-2012 Hippo. All Rights Reserved.