getPodNamesForAnnotation<A> method
Retrieves pod names for pods annotated with the specified annotation type.
This method is useful for discovering pods with specific metadata such as @Controller, @Service, or custom annotations.
Usage Example:
// Find all controllers
final controllerNames = await factory.getPodNamesForAnnotation(Class<Controller>());
for (final name in controllerNames) {
print('Found controller: $name');
}
@param type The annotation type to look for @return A Future that completes with a list of pod names
Implementation
@override
Future<List<String>> getPodNamesForAnnotation<A>(Class<A> type) async {
List<String> list = List<String>.from(await getPodFactory().getPodNamesForAnnotation(type));
if (_parent != null) {
list.addAll(await _parent!.getPodFactory().getPodNamesForAnnotation(type));
}
return list;
}