Class ComponentClassCacheImpl
java.lang.Object
org.apache.tapestry5.internal.services.ComponentClassCacheImpl
- All Implemented Interfaces:
ComponentClassCache
-
Constructor Summary
ConstructorsConstructorDescriptionComponentClassCacheImpl
(PlasticProxyFactory plasticFactory, TypeCoercer typeCoercer) -
Method Summary
Modifier and TypeMethodDescriptiondefaultValueForType
(String className) Computes the default value for a field of the given type, returns the appropriate default value.Gets the Class instance for the given fully-qualified class name.void
-
Constructor Details
-
ComponentClassCacheImpl
public ComponentClassCacheImpl(@ComponentLayer PlasticProxyFactory plasticFactory, TypeCoercer typeCoercer)
-
-
Method Details
-
setupInvalidation
-
defaultValueForType
Description copied from interface:ComponentClassCache
Computes the default value for a field of the given type, returns the appropriate default value. This is typically null, but may be false (for a primitive boolean) or some version of 0 (for a primitive numeric field). Wrapper types will still be null.- Specified by:
defaultValueForType
in interfaceComponentClassCache
- Parameters:
className
- type of field
-
forName
Description copied from interface:ComponentClassCache
Gets the Class instance for the given fully-qualified class name.- Specified by:
forName
in interfaceComponentClassCache
- Parameters:
className
- fully qualified class name, or a primitive type name, or an array name (in source format)- Returns:
- the class instance
-