public class EmbeddedComponentAssemblerImpl extends Object
Constructor and Description |
---|
EmbeddedComponentAssemblerImpl(ComponentAssemblerSource assemblerSource,
ComponentInstantiatorSource instantiatorSource,
ComponentClassResolver componentClassResolver,
String componentClassName,
ComponentResourceSelector selector,
EmbeddedComponentModel embeddedModel,
String templateMixins,
Location location,
boolean strictMixinParameters) |
Modifier and Type | Method and Description |
---|---|
int |
addMixinsToElement(ComponentPageElement newElement)
Adds mixins to the newly created embedded element.
|
org.apache.tapestry5.internal.pageload.ParameterBinder |
createParameterBinder(String qualifiedParameterName)
Creates a binder that can later be used to bind the parameter.
|
org.apache.tapestry5.internal.pageload.ComponentAssembler |
getComponentAssembler()
Returns the assembler responsible for creating instances of this embedded component.
|
Set<String> |
getFormalParameterNames()
Returns the names of all formal parameters.
|
Location |
getLocation()
Returns the location associated with this object for error reporting purposes.
|
boolean |
isBound(String parameterName)
Checks to see if the parameter name has been bound.
|
void |
setBound(String parameterName)
Marks the parameter name as bound.
|
public EmbeddedComponentAssemblerImpl(ComponentAssemblerSource assemblerSource, ComponentInstantiatorSource instantiatorSource, ComponentClassResolver componentClassResolver, String componentClassName, ComponentResourceSelector selector, EmbeddedComponentModel embeddedModel, String templateMixins, Location location, boolean strictMixinParameters)
assemblerSource
- instantiatorSource
- used to access component modelscomponentClassResolver
- used to convert mixin types to component modelscomponentClassName
- class name of embedded componentselector
- used to select template and other resourcesembeddedModel
- embedded model (may be null for components defined in the template)templateMixins
- list of mixins from the t:mixins element (possibly null)location
- location of components element in its container's templatestrictMixinParameters
- if true (e.g., the 5.4 DTD) then mixin parameters must be fully qualifiedpublic org.apache.tapestry5.internal.pageload.ComponentAssembler getComponentAssembler()
public org.apache.tapestry5.internal.pageload.ParameterBinder createParameterBinder(String qualifiedParameterName)
qualifiedParameterName
- simple or qualified parameter namepublic boolean isBound(String parameterName)
public void setBound(String parameterName)
Component
annotation (even inherited bindings).public int addMixinsToElement(ComponentPageElement newElement)
newElement
- new element requiring mixinspublic Location getLocation()
Locatable
public Set<String> getFormalParameterNames()
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.