Package | Description |
---|---|
org.apache.tapestry5.ioc.internal |
[INTERNAL USE ONLY] Tapestry IOC implementation details; API subject to change.
|
org.apache.tapestry5.ioc.internal.services |
[INTERNAL USE ONLY] Tapestry IOC service implementation classes; API subject to change.
|
org.apache.tapestry5.ioc.modules | |
org.apache.tapestry5.ioc.services |
Tapestry IOC service interfaces
|
org.apache.tapestry5.json.modules |
Optional module that allows JSON objects to be used with the
TypeCoercer service, when
the tapestry-ioc module is present. |
org.apache.tapestry5.modules | |
org.apache.tapestry5.mongodb.modules |
Modifier and Type | Method and Description |
---|---|
static void |
BasicTypeCoercions.provideBasicTypeCoercions(Configuration<CoercionTuple> configuration)
Provides the basic type coercions to a
Configuration instance. |
static void |
BasicTypeCoercions.provideJSR310TypeCoercions(Configuration<CoercionTuple> configuration)
Provides the basic type coercions for JSR310 (java.time.*) to a
Configuration
instance. |
Constructor and Description |
---|
TypeCoercerImpl(Collection<CoercionTuple> tuples) |
Modifier and Type | Method and Description |
---|---|
static void |
TapestryIOCModule.provideBasicTypeCoercions(Configuration<CoercionTuple> configuration)
Contributes a set of standard type coercions to the
TypeCoercer service:
Object to String
Object to Boolean
String to Double
String to BigDecimal
BigDecimal to Double
Double to BigDecimal
String to BigInteger
BigInteger to Long
String to Long
Long to Byte
Long to Short
Long to Integer
Double to Long
Double to Float
Float to Double
Long to Double
String to Boolean ("false" is always false, other non-blank strings are true)
Number to Boolean (true if number value is non zero)
Null to Boolean (always false)
Collection to Boolean (false if empty)
Object[] to List
primitive[] to List
Object to List (by wrapping as a singleton list)
String to File
String to TimeInterval
TimeInterval to Long
Object to Object[] (wrapping the object as an array)
Collection to Object[] (via the toArray() method)
Flow to List
Flow to Boolean (false if empty)
|
static void |
TapestryIOCModule.provideJSR10TypeCoercions(Configuration<CoercionTuple> configuration)
Contributes coercions to and from Java Time API (JSR 310) classes.
|
Modifier and Type | Method and Description |
---|---|
static <S,T> CoercionTuple<S,T> |
CoercionTuple.create(Class<S> sourceType,
Class<T> targetType,
Coercion<S,T> coercion)
Convenience constructor to help with generics.
|
Modifier and Type | Method and Description |
---|---|
static void |
JSONModule.provideCoercions(Configuration<CoercionTuple> configuration)
|
Modifier and Type | Method and Description |
---|---|
static void |
TapestryModule.contributeTypeCoercer(Configuration<CoercionTuple> configuration,
ObjectLocator objectLocator,
ThreadLocale threadLocale,
AssetSource assetSource,
DynamicTemplateParser dynamicTemplateParser)
Adds coercions:
String to
SelectModel
Map to SelectModel
Collection to GridDataSource
null to GridDataSource
List to SelectModel
ComponentResourcesAware (typically, a component) to ComponentResources
ComponentResources to PropertyOverrides
String to Renderable
Renderable to Block
String to DateFormat
String to Resource (via AssetSource.resourceForPath(String) )
Renderable to RenderCommand
String to Pattern
String to DateFormat
Resource to DynamicTemplate
Asset to Resource
ValueEncoder to ValueEncoderFactory
|
Modifier and Type | Method and Description |
---|---|
static void |
MongodbModule.contributeTypeCoercer(Configuration<CoercionTuple> configuration)
|
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.