Class RecursiveServiceCreationCheckWrapper

java.lang.Object
org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper
All Implemented Interfaces:
ObjectCreator

Decorator for ObjectCreator that ensures the service is only created once. This detects a situation where the service builder for a service directly or indirectly invokes methods on the service itself. This would show up as a second call up the ServiceCreator stack injected into the proxy, potentially leading to endless recursion. We try to identify that recursion and produce a useable exception report.