Class PropertyConduitSourceImpl
java.lang.Object
org.apache.tapestry5.beanmodel.internal.services.PropertyConduitSourceImpl
- All Implemented Interfaces:
PropertyConduitSource
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyConduitSourceImpl
(PropertyAccess access, PlasticProxyFactory proxyFactory, TypeCoercer typeCoercer, StringInterner interner) -
Method Summary
Modifier and TypeMethodDescriptionReturns a property conduit instance for the given expression.void
static NullPointerException
May be invoked from fabricated PropertyConduit instances.
-
Constructor Details
-
PropertyConduitSourceImpl
public PropertyConduitSourceImpl(PropertyAccess access, @ComponentLayer PlasticProxyFactory proxyFactory, TypeCoercer typeCoercer, StringInterner interner)
-
-
Method Details
-
listenForInvalidations
-
create
Description copied from interface:PropertyConduitSource
Returns a property conduit instance for the given expression. PropertyConduitSource caches the conduits it returns, so despite the name, this method does not always create a new conduit. The cache is cleared if a change to component classes is observed. Callers of this method should observe notifications from theInvalidationEventHub
forComponentClasses
and discard any aquired conduits; failure to do so will create memory leaks whenever component classes change (the conduits will keep references to the old classes and classloaders).- Specified by:
create
in interfacePropertyConduitSource
- Parameters:
rootClass
- the type of the root object to which the expression is appliedexpression
- expression to be evaluated on instances of the root class- Returns:
- RuntimeException if the expression is invalid (poorly formed, references non-existent properties, etc.)
-
nullTerm
May be invoked from fabricated PropertyConduit instances.
-