# ScopedObjectFactory<T> constructor

ScopedObjectFactory<T>(

1. String name,
2. PodScope scope,
3. ObjectFactory<T> fallbackFactory

)

An ObjectFactory implementation that retrieves objects from a specific PodScope.

This factory combines a pod scope with a fallback factory to provide scope-aware object retrieval. It first attempts to get the object from the specified scope, and if not found, uses the fallback factory to create and register the object in the scope.

Key features:

- Scope-aware object retrieval and creation
- Lazy initialization with fallback factory
- Thread-safe scope operations
- Support for various scope types (singleton, prototype, request, session, etc.)
- Integration with scope lifecycle management

This is particularly useful for:

- Managing objects with specific lifecycle requirements
- Handling request-scoped or session-scoped objects
- Implementing custom scope strategies
- Integrating with web frameworks and other scope-aware environments

Example usage:

    // Create a fallback factory for UserService
    final fallbackFactory = () {
      final service = UserService();
      service.initialize();
      return service;
    };

    // Create a scoped factory for request scope
    final scopedFactory = ScopedObjectFactory<UserService>(
      'userService',
      requestScope,
      fallbackFactory,
    );

    // Get the UserService instance from the scope
    final userService = scopedFactory.getObject();

name: The name of the pod to manage in the scope scope: The pod scope to use for object retrieval and registration fallbackFactory: The factory to use when the object needs to be created

Example:

    final factory = ScopedObjectFactory<UserService>(
      'userService',
      sessionScope,
      () => UserService()..initialize(),
    );

## Implementation

    ScopedObjectFactory(this.name, this.scope, this.fallbackFactory);