# registerDefinition method

1. @override

Future<void> registerDefinition(

1. String name,
2. PodDefinition pod

)
override

Register a new `pod` under the given `name`.

This method adds a pod to the registry with the specified name. The pod name must be unique within the registry and follow the naming conventions established by the implementation.

`name`: The name to register the pod under. Must be unique and non-empty. Follows typical pod naming patterns. `pod`: The pod object to register. The type `T` depends on the registry implementation (PodDefinition, Object, etc.)

Throws:

- IllegalArgumentException if name is null, empty, or invalid

Example:

    // Register a pod definition
    final podDef = GenericPodDefinition.forClass(UserService);
    registry.registerDefinition('userService', podDef);

## Implementation

    @override
    Future<void> registerDefinition(String name, PodDefinition pod) async {
      await getPodFactory().registerDefinition(name, pod);
    }