org.xwiki.component.internal
Class UserComponentManager

java.lang.Object
  extended by org.xwiki.component.internal.DelegateComponentManager
      extended by org.xwiki.component.internal.AbstractGenericComponentManager
          extended by org.xwiki.component.internal.UserComponentManager
All Implemented Interfaces:
org.xwiki.component.manager.ComponentManager, org.xwiki.component.phase.Initializable

@Component(value="user")
public class UserComponentManager
extends AbstractGenericComponentManager
implements org.xwiki.component.phase.Initializable

Proxy Component Manager that creates and queries individual Component Managers specific to the current user in the Execution Context. These Component Managers are created on the fly the first time a component is registered for the current user.

Since:
2.1RC1
Version:
$Id$

Constructor Summary
UserComponentManager()
           
 
Method Summary
protected  java.lang.String getKey()
          
 void initialize()
          
 
Methods inherited from class org.xwiki.component.internal.AbstractGenericComponentManager
getComponentManager, getInternalParent, registerComponent, registerComponent, setInternalParent, unregisterComponent
 
Methods inherited from class org.xwiki.component.internal.DelegateComponentManager
getComponentDescriptor, getComponentDescriptorList, getComponentEventManager, getParent, hasComponent, hasComponent, lookup, lookup, lookupList, lookupMap, release, setComponentEventManager, setComponentManager, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserComponentManager

public UserComponentManager()
Method Detail

initialize

public void initialize()
                throws org.xwiki.component.phase.InitializationException

Specified by:
initialize in interface org.xwiki.component.phase.Initializable
Throws:
org.xwiki.component.phase.InitializationException
See Also:
Initializable.initialize()

getKey

protected java.lang.String getKey()

Specified by:
getKey in class AbstractGenericComponentManager
Returns:
the key (any String) representing the current Component Manager. For example in the case of a User Component Manager the key can be the current user in the execution context so that we can register/lookup components only for that user
See Also:
AbstractGenericComponentManager.getKey()


Copyright © 2004-2011 XWiki. All Rights Reserved.