|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.ComponentSourceImpl
public class ComponentSourceImpl
Constructor Summary | |
---|---|
ComponentSourceImpl(RequestPageCache pageCache,
ComponentClassResolver resolver,
RequestGlobals globals)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentSourceImpl(RequestPageCache pageCache, ComponentClassResolver resolver, RequestGlobals globals)
Method Detail |
---|
public Component getComponent(String completeId)
ComponentSource
getComponent
in interface ComponentSource
completeId
- complete component id (case insensitive)
ComponentResourcesCommon.getCompleteId()
public Component getPage(String pageName)
ComponentSource
getPage
in interface ComponentSource
pageName
- the logical page name
public Component getPage(Class pageClass)
ComponentSource
getPage
in interface ComponentSource
pageClass
- used to locate the page instance
public Component getActivePage()
ComponentSource
RequestGlobals.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 ComponentSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |