| java.lang.Object org.apache.tapestry.ioc.services.TapestryIOCModule
TapestryIOCModule | final public class TapestryIOCModule (Code) | | Defines the base set of services for the Tapestry IOC container.
|
Method Summary | |
public static void | bind(ServiceBinder binder) | public static ServiceLifecycleSource | build(Map<String, ServiceLifecycle> configuration) Provides access to additional service lifecycles. | public static ObjectProvider | buildMasterObjectProvider(List<ObjectProvider> configuration, ChainBuilder chainBuilder) The master
ObjectProvider is responsible for identifying a particular ObjectProvider
by its prefix, and delegating to that instance. | public static void | contributeMasterObjectProvider(OrderedConfiguration<ObjectProvider> configuration, ObjectLocator locator) Contributes "DefaultProvider", ordered last, that delegates to
ObjectLocator.getService(Class) . | public void | contributeServiceLifecycleSource(MappedConfiguration<String, ServiceLifecycle> configuration, ObjectLocator locator) Contributes the "perthread" scope. | public static void | contributeSymbolSource(OrderedConfiguration<SymbolProvider> configuration, SymbolProvider applicationDefaults, SymbolProvider factoryDefaults) | public static void | contributeTypeCoercer(Configuration<CoercionTuple> configuration) |
build | public static ServiceLifecycleSource build(Map<String, ServiceLifecycle> configuration)(Code) | | Provides access to additional service lifecycles. One lifecycles is built in ("singleton")
but additional ones are accessed via this service (and its mapped configuration). Only
proxiable services (those with explicit service interfaces) can be managed in terms of a
lifecycle.
|
contributeTypeCoercer | public static void contributeTypeCoercer(Configuration<CoercionTuple> configuration)(Code) | | Contributes a set of standard type coercions:
- Object to String
- 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)
- Long to Boolean (true if long value is non zero)
- Null to Boolean (always false)
- Null to String (still null)
- Collection to Boolean (false if empty)
- Object[] to List
- Object to List (by wrapping as a singleton list)
- Null to List (still null)
See Also: TapestryIOCModule.buildTypeCoercer(Collection,ComponentInstantiatorSource) |
|
|