# freezeConfiguration method

void freezeConfiguration()

Freezes the factory configuration to prevent runtime modifications.

When frozen, the factory prevents modifications to pod definitions and configuration, ensuring runtime stability. This is typically called after all pods are registered and before the application starts processing requests.

Once frozen, attempts to register new definitions will throw PodDefinitionStoreException.

Usage Example:

    final factory = DefaultListablePodFactory();
    // Register all definitions...
    await factory.registerDefinition('serviceA', ServiceADefinition());
    await factory.registerDefinition('serviceB', ServiceBDefinition());

    factory.freezeConfiguration(); // Prevent further modifications

    // This will now throw an exception:
    // await factory.registerDefinition('serviceC', ServiceCDefinition());

## Implementation

    void freezeConfiguration() {
      clearMetadataCache();
      _configurationFrozen = true;
      _frozenPodDefinitionNames = List.unmodifiable(getDefinitionNames());
    }