no.sesat.search.site
Interface Site.Context

All Superinterfaces:
no.sesat.commons.ioc.BaseContext
Enclosing class:
Site

public static interface Site.Context
extends no.sesat.commons.ioc.BaseContext

During construction of any site we must know who the parent site is going to be. It will likely be also constructed since leaf sites are those first requested. The base level sites, locale variants of the DEFAULT site, are expected to have a null parent. These DEFAULT sites can just pass in a null context instead of constructing a context that returns a null parent. Not to be confused with the SiteContext. This is a Context required for constructing a Site. While a SiteContext is a context required to use a Site.


Method Summary
 String getParentSiteName(SiteContext siteContext)
          Get the name of the parent site.
 

Method Detail

getParentSiteName

String getParentSiteName(SiteContext siteContext)
Get the name of the parent site.

Parameters:
siteContext - that can provide the current site the code is within.
Returns:
the name of the parent site.


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.