# beforeSingletonCreation method

1. @protected

void beforeSingletonCreation(

1. String name

)
inherited

Callback before singleton creation.

This method performs pre-creation checks and state management, including circular dependency detection.

`name`: The name of the pod about to be created

Throws PodCurrentlyInCreationException if circular dependency is detected

## Implementation

    @protected
    void beforeSingletonCreation(String name) {
      if (!_currentlyExcludedPodsForCreationChecks.contains(name) && !_singletonsCurrentlyInCreation.add(name)) {
        throw PodCurrentlyInCreationException(name: name, msg: 'Singleton pod $name is currently in creation');
      }
    }