Package org.hippoecm.hst.core.container
Interface HstComponentRegistry
public interface HstComponentRegistry
The HstComponent registry interface
- Version:
- $Id$
-
Method Summary
Modifier and TypeMethodDescriptiongetComponent
(HstContainerConfig requestContainerConfig, String componentId) Returns the registered HstComponent.getComponentMetadata
(HstContainerConfig requestContainerConfig, String componentId) Returns the metadata of the registered HstComponent.boolean
void
registerComponent
(HstContainerConfig requestContainerConfig, String componentId, HstComponent component) Registers the HstComponent.void
Unregisters all the HstComponents.void
unregisterComponent
(HstContainerConfig requestContainerConfig, String componentId) Unregister the HstComponent.
-
Method Details
-
registerComponent
void registerComponent(HstContainerConfig requestContainerConfig, String componentId, HstComponent component) Registers the HstComponent. The key is the pair of container configuration and component ID.- Parameters:
requestContainerConfig
- the container configurationcomponentId
- the component IDcomponent
-
-
unregisterComponent
Unregister the HstComponent. The key is the pair of container configuration and component ID.- Parameters:
requestContainerConfig
- the container configurationcomponentId
- the component ID
-
getComponent
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.
- Parameters:
requestContainerConfig
- the container configurationcomponentId
- the component ID- Returns:
- the HstComponent registered with the key pair.
-
getComponentMetadata
HstComponentMetadata getComponentMetadata(HstContainerConfig requestContainerConfig, String componentId) Returns the metadata of the registered HstComponent. The key is the pair of container configuration and component ID.If the component metadata is not found, then it will return null.
- Parameters:
requestContainerConfig
- the container configurationcomponentId
- the component ID- Returns:
- the metadata of the HstComponent registered with the key pair.
-
unregisterAllComponents
void unregisterAllComponents()Unregisters all the HstComponents. -
isAwaitingTermination
boolean isAwaitingTermination()- Returns:
true
if thisHstComponentRegistry
is waiting for termination. Note that the registry functions as normal when this returnstrue
. This method should return true if the backingVirtualHosts
model is belongs too is invalidated and is about to be garbage collected
-