public interface ComponentPageElementResources extends ContextValueEncoder, OperationTracker
ComponentPageElement
and
InternalComponentResources
.Modifier and Type | Method and Description |
---|---|
<S,T> T |
coerce(S input,
Class<T> targetType)
Performs a coercion from an input type to a desired output type.
|
Link |
createComponentEventLink(ComponentResources resources,
String eventType,
boolean forForm,
Object... context)
Creates a link on behalf of a component.
|
Link |
createPageRenderLink(Class pageClass,
boolean override,
Object... context)
Creates a page render request link to render a specific page.
|
Link |
createPageRenderLink(String pageName,
boolean override,
Object... context)
Creates a page render request link to render a specific page.
|
<T> PerThreadValue<T> |
createPerThreadValue()
Wrapper around
PerthreadManager.createValue() . |
org.slf4j.Logger |
getEventLogger(org.slf4j.Logger componentLogger)
Returns the event logger for the provided component logger.
|
Messages |
getMessages(ComponentModel componentModel)
Used to obtain a
Messages instance for a particular component. |
ComponentResourceSelector |
getSelector()
Returns the selector associated with this resources.
|
boolean |
isRenderTracingEnabled()
Returns true if component element tracing is enabled.
|
Class |
toClass(String className)
Gets the Class instance for then give name.
|
toClient, toValue
invoke, perform, run
ComponentResourceSelector getSelector()
Messages getMessages(ComponentModel componentModel)
Messages
instance for a particular component. If the component
extends from another component, then its localized properties will merge with its parent's properties (with the
subclass overriding the super class on any conflicts).componentModel
- ComponentMessagesSource
<S,T> T coerce(S input, Class<T> targetType)
S
- source type (input)T
- target type (output)input
- targetType
- defines the target typeTypeCoercer
Class toClass(String className)
className
- fully qualified class nameComponentClassCache
Link createComponentEventLink(ComponentResources resources, String eventType, boolean forForm, Object... context)
resources
- resources for the componenteventType
- type of event to createforForm
- true if generating for a form submissioncontext
- additional event context associated with the linkLink createPageRenderLink(String pageName, boolean override, Object... context)
pageName
- the logical name of the page to link tooverride
- if true, the context is used even if empty (normally, the target page is allowed to passivate,
providing a context, when the provided context is empty)context
- the activation context for the page. If omitted, the activation context is obtained from the
target pageLink createPageRenderLink(Class pageClass, boolean override, Object... context)
pageClass
- identifies the page to link tooverride
- if true, the context is used even if empty (normally, the target page is allowed to passivate,
providing a context, when the provided context is empty)context
- the activation context for the page. If omitted, the activation context is obtained from the
target pageorg.slf4j.Logger getEventLogger(org.slf4j.Logger componentLogger)
componentLogger
- provides base name for logger<T> PerThreadValue<T> createPerThreadValue()
PerthreadManager.createValue()
.boolean isRenderTracingEnabled()
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.