# isClassRegistered<T> abstract method

bool isClassRegistered<T>(

1. Class<T> type

)

Checks whether a `type` has already been registered in this context.

This is useful for conditionally initializing fallbacks or skipping logic.

Example:

    if (!context.isClassRegistered(Class<Logger>())) {
      // Register or provide fallback
    }

## Implementation

    bool isClassRegistered<T>(Class<T> type);