Class ComponentPageElementImpl

java.lang.Object
org.apache.tapestry5.ioc.BaseLocatable
org.apache.tapestry5.internal.structure.ComponentPageElementImpl
All Implemented Interfaces:
Locatable, ComponentResourcesCommon, InternalComponentResourcesCommon, BodyPageElement, ComponentPageElement, RenderCommand

Implements RenderCommand and represents a component within an overall page. Much of a component page element's behavior is delegated to user code, via a Component instance. Once instantiated, a ComponentPageElement should be registered as a lifecycle listener. This could be done inside the constructors, but that tends to complicate unit tests, so its done by PageElementFactoryImpl. There's still a bit of refactoring in this class (and its many inner classes) that can improve overall efficiency. Modified for Tapestry 5.2 to adjust for the no-pooling approach (shared instances with externalized mutable state).