public class ComponentSourceImpl extends Object implements ComponentSource
| Constructor and Description |
|---|
ComponentSourceImpl(RequestPageCache pageCache,
ComponentClassResolver resolver,
RequestGlobals globals) |
| Modifier and Type | Method and Description |
|---|---|
Component |
getActivePage()
Returns the active page, as defined by
RequestGlobals.getActivePageName(). |
Component |
getComponent(String completeId)
Gets a component by its complete id.
|
Component |
getPage(Class pageClass)
A convienience for obtaining a page instance via a class instance.
|
Component |
getPage(String pageName)
Returns the page identified by its logical page name.
|
public ComponentSourceImpl(RequestPageCache pageCache, ComponentClassResolver resolver, RequestGlobals globals)
public Component getComponent(String completeId)
ComponentSourcegetComponent in interface ComponentSourcecompleteId - complete component id (case insensitive)ComponentResourcesCommon.getCompleteId()public Component getPage(String pageName)
ComponentSourcegetPage in interface ComponentSourcepageName - the logical page namepublic Component getPage(Class pageClass)
ComponentSourcegetPage in interface ComponentSourcepageClass - used to locate the page instancepublic Component getActivePage()
ComponentSourceRequestGlobals.getActivePageName(). This is the primary
page for handling the current request, the page which will be activated for
the request.
The identity of the active page is not known until the correct Dispatcher determines this.getActivePage in interface ComponentSource5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.