public class LinkSourceImpl extends Object implements LinkSource, LinkCreationHub
| Constructor and Description |
|---|
LinkSourceImpl(PageRenderQueue pageRenderQueue,
PageActivationContextCollector contextCollector,
TypeCoercer typeCoercer,
ComponentClassResolver resolver,
ComponentEventLinkEncoder linkEncoder,
RequestGlobals requestGlobals,
RequestPageCache pageCache,
List<LinkCreationListener2> configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(LinkCreationListener listener)
Adds a listener.
|
void |
addListener(LinkCreationListener2 listener)
Adds a listener.
|
Link |
createComponentEventLink(Page page,
String nestedId,
String eventType,
boolean forForm,
Object... eventContext)
Creates a stateful action link.
|
Link |
createPageRenderLink(String pageName,
boolean override,
Object... pageActivationContext)
Creates a render link for the page.
|
LinkCreationHub |
getLinkCreationHub()
Returns the hub, used to register and de-register
LinkCreationListener2s. |
public LinkSourceImpl(PageRenderQueue pageRenderQueue, PageActivationContextCollector contextCollector, TypeCoercer typeCoercer, ComponentClassResolver resolver, ComponentEventLinkEncoder linkEncoder, RequestGlobals requestGlobals, RequestPageCache pageCache, List<LinkCreationListener2> configuration)
public Link createComponentEventLink(Page page, String nestedId, String eventType, boolean forForm, Object... eventContext)
LinkSourcecreateComponentEventLink in interface LinkSourcepage - the page holding the componentnestedId - the component's qualified id (a sequence of simple ids, separated by dots).eventType - the type of event to triggerforForm - true if the link is for a form, false otherwiseeventContext - Additional path data, each value will be converted to a string and appended to the URI @return a
linkComponentResourcesCommon.createEventLink(String, Object...)public Link createPageRenderLink(String pageName, boolean override, Object... pageActivationContext)
LinkSourcecreatePageRenderLink in interface LinkSourcepageName - name of the page to which a link should be createdoverride - if true, then the provided activation context is always used even if emptypageActivationContext - the activation context for the pagePageRenderLinkSource.createPageRenderLink(String),
PageRenderLinkSource.createPageRenderLinkWithContext(String, Object[])public LinkCreationHub getLinkCreationHub()
LinkSourceLinkCreationListener2s.getLinkCreationHub in interface LinkSourcepublic void addListener(LinkCreationListener listener)
LinkCreationHubaddListener in interface LinkCreationHubpublic void addListener(LinkCreationListener2 listener)
LinkCreationHubaddListener in interface LinkCreationHub5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.