isAutowireCandidate abstract method

bool isAutowireCandidate(
  1. String podName,
  2. DependencyDescriptor descriptor
)
inherited

Checks if a pod is a candidate for autowiring for the given dependency.

This method considers various factors including dependency type, qualifiers, and other autowiring conditions.

Usage Example:

final candidate = factory.isAutowireCandidate('userService', descriptor);
if (candidate) {
  print('userService is a valid autowire candidate for this dependency');
}

@param podName The name of the pod to check @param descriptor The dependency descriptor @return true if the pod is a valid autowire candidate

Implementation

bool isAutowireCandidate(String podName, DependencyDescriptor descriptor);