Package org.apache.wicket.application
Interface IComponentInstantiationListener
-
- All Known Implementing Classes:
ComponentInstantiationListenerCollection
,GuiceComponentInjector
,HTML5Attributes.InstantiationListener
,RenderPerformanceListener
,SpringComponentInjector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IComponentInstantiationListener
Listener interface that receives messages when components are constructed. This mechanism is used byIAuthorizationStrategy
, but can additionally be used to implement things like dependency injection support etc. Implementations must be thread safe- Author:
- Eelco Hillenius
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onInstantiation(Component component)
Called for every component that is instantiated.
-
-
-
Method Detail
-
onInstantiation
void onInstantiation(Component component)
Called for every component that is instantiated. This method is called during construction, so do not depend on the construction being completed yet. The id is guaranteed to be set before this call.- Parameters:
component
- the component that is being instantiated.
-
-