org.xwiki.component.wiki.internal
Class DefaultWikiComponentManager

java.lang.Object
  extended by org.xwiki.component.wiki.internal.DefaultWikiComponentManager
All Implemented Interfaces:
WikiComponentManager

@Component
@Singleton
public class DefaultWikiComponentManager
extends Object
implements WikiComponentManager

Default implementation of WikiComponentManager. Creates proxy objects which method invocation handler keeps a reference on a set of declared method and associated wiki content to "execute".

Since:
4.2M3

Constructor Summary
DefaultWikiComponentManager()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWikiComponentManager

public DefaultWikiComponentManager()
Method Detail

registerWikiComponent

public void registerWikiComponent(WikiComponent component)
                           throws WikiComponentException
Description copied from interface: WikiComponentManager
Registers the passed component against the underlying component repository.

Specified by:
registerWikiComponent in interface WikiComponentManager
Parameters:
component - the component to register
Throws:
WikiComponentException - when failed to register the component against the CM

unregisterWikiComponents

public void unregisterWikiComponents(DocumentReference reference)
                              throws WikiComponentException
Description copied from interface: WikiComponentManager
Unregisters the wiki component(s) associated with the passed reference.

Specified by:
unregisterWikiComponents in interface WikiComponentManager
Parameters:
reference - the reference to the document holding the component to unregister
Throws:
WikiComponentException - when failed to unregister the component from the CM.