org.xwiki.component.wiki
Interface WikiComponentManager


@Role
public interface WikiComponentManager

A WikiComponentManager is responsible for registering and unregistering components that are defined as wiki pages. Each WikiComponent managed by such manager is associated to a DocumentReference. The referred document contains XObjects that define the role, hint and behavior (method bodies) of the component. This document may also define requirements (other components to be binded in the method bodies execution context) and possible extra interfaces (for example to implement org.xwiki.component.phase.Initializable).

Since:
4.2M3
Version:
$Id: c057025dcc724b1c47cab7c6fb3d2e5482214611 $

Method Summary
 void registerWikiComponent(WikiComponent component)
          Registers the passed component against the underlying component repository.
 void unregisterWikiComponents(DocumentReference reference)
          Unregisters the wiki component(s) associated with the passed reference.
 

Method Detail

registerWikiComponent

void registerWikiComponent(WikiComponent component)
                           throws WikiComponentException
Registers the passed component against the underlying component repository.

Parameters:
component - the component to register
Throws:
WikiComponentException - when failed to register the component against the CM

unregisterWikiComponents

void unregisterWikiComponents(DocumentReference reference)
                              throws WikiComponentException
Unregisters the wiki component(s) associated with the passed reference.

Parameters:
reference - the reference to the document holding the component to unregister
Throws:
WikiComponentException - when failed to unregister the component from the CM.


Copyright © 2004-2013 XWiki. All Rights Reserved.