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
LinkCreationListener2 s. |
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)
LinkSource
createComponentEventLink
in interface LinkSource
page
- 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)
LinkSource
createPageRenderLink
in interface LinkSource
pageName
- 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()
LinkSource
LinkCreationListener2
s.getLinkCreationHub
in interface LinkSource
public void addListener(LinkCreationListener listener)
LinkCreationHub
addListener
in interface LinkCreationHub
public void addListener(LinkCreationListener2 listener)
LinkCreationHub
addListener
in interface LinkCreationHub
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.