# DefaultObjectProvider<T> constructor

DefaultObjectProvider<T>(

1. String _podName,
2. PodFactory _factory,
3. List<ObjectHolder<T>> objects

)

Default implementation of ObjectProvider in Jetleaf.

This class is responsible for retrieving pods (objects) from the PodFactory and exposing them through a consistent provider interface.

It supports both direct retrieval (via get) and streaming (via stream).

### Example

    final provider = DefaultObjectProvider<MyService>(
      'myServicePod',
      factory,
      [ObjectHolder(MyService())],
    );

    // Retrieve an object
    final holder = await provider.get();
    print(holder.object);

    // Stream objects
    await for (final obj in provider.stream()) {
      print('Received: ${obj.object}');
    }

This is part of Jetleaf – a framework which developers can use to build web applications.

## Implementation

    DefaultObjectProvider(this._podName, this._factory, this.objects);