com.day.cq.wcm.api.components
Interface ComponentManager

All Known Implementing Classes:
ComponentManagerImpl

public interface ComponentManager

Provides access to CQ5 Components


Method Summary
 Component getComponent(String path)
          Returns the component at the given path.
 Component getComponentOfResource(org.apache.sling.api.resource.Resource resource)
          Returns the component according to the type of the resource or null if no such component exists.
 Collection<Component> getComponents()
          Returns all components configured in the system.
 

Method Detail

getComponentOfResource

Component getComponentOfResource(org.apache.sling.api.resource.Resource resource)
Returns the component according to the type of the resource or null if no such component exists.

Parameters:
resource - to resolve
Returns:
the respective component or null

getComponent

Component getComponent(String path)
Returns the component at the given path. The path can be relative.

Parameters:
path - component path
Returns:
the component or null

getComponents

Collection<Component> getComponents()
Returns all components configured in the system.

Returns:
all components.


Copyright © 2008 Day Management AG. All Rights Reserved.