org.xwiki.configuration.internal
Class WikiPreferencesConfigurationSource

java.lang.Object
  extended by org.xwiki.configuration.internal.AbstractDocumentConfigurationSource
      extended by org.xwiki.configuration.internal.WikiPreferencesConfigurationSource
All Implemented Interfaces:
org.xwiki.configuration.ConfigurationSource

@Component
@Named(value="wiki")
@Singleton
public class WikiPreferencesConfigurationSource
extends AbstractDocumentConfigurationSource

Configuration source taking its data in the Wiki Preferences wiki document (using data from the XWiki.XWikiPreferences object attached to that document).

Since:
2.0M2
Version:
$Id$

Constructor Summary
WikiPreferencesConfigurationSource()
           
 
Method Summary
protected  DocumentReference getClassReference()
           
protected  DocumentReference getDocumentReference()
           
 
Methods inherited from class org.xwiki.configuration.internal.AbstractDocumentConfigurationSource
containsKey, getCurrentWikiReference, getDocumentAccessBridge, getKeys, getProperty, getProperty, getProperty, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiPreferencesConfigurationSource

public WikiPreferencesConfigurationSource()
Method Detail

getClassReference

protected DocumentReference getClassReference()
Specified by:
getClassReference in class AbstractDocumentConfigurationSource
Returns:
the XWiki Class reference of the XWiki Object containing the configuration properties

getDocumentReference

protected DocumentReference getDocumentReference()
Specified by:
getDocumentReference in class AbstractDocumentConfigurationSource
Returns:
the document reference of the document containing an XWiki Object with configuration data or null if there no such document in which case this configuration source will be skipped


Copyright © 2004-2011 XWiki. All Rights Reserved.