setPodFactory abstract method

void setPodFactory(
  1. PodFactory podFactory
)

Sets the PodFactory that created and manages this component.

This method is called by the JetLeaf framework once during component initialization, immediately after construction and before any other lifecycle callbacks.

Implementation Notes:

  • The provided podFactory is guaranteed to be non-null
  • The method should store the reference for later use
  • Avoid complex initialization logic in this method
  • Throwing exceptions may prevent the component from being fully initialized

Parameters:

  • podFactory: The fully configured PodFactory instance that created this component

Example:

@override
void setPodFactory(PodFactory podFactory) {
  _podFactory = podFactory;
  // Optional: perform simple initialization that requires PodFactory
  _initializeCache();
}

Implementation

void setPodFactory(PodFactory podFactory);