| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ComponentSourcecompleteId - complete component id (case insensitive)
ComponentResourcesCommon.getCompleteId()public Component getPage(String pageName)
ComponentSource
getPage in interface ComponentSourcepageName - the logical page name
public Component getPage(Class pageClass)
ComponentSource
getPage in interface ComponentSourcepageClass - used to locate the page instance
public 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 ComponentSource
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||