getDefinitionByClass abstract method

PodDefinition getDefinitionByClass(
  1. Class type
)

Returns the pod definition for the specified class type.

This method looks up the pod definition by class rather than by name.

Usage Example:

final factory = getPodFactory();
final definition = factory.getDefinitionByClass(Class.forObject(MyService));

type the class type to look up Returns the PodDefinition for the specified class

Throws PodNotFoundException if no pod is defined for the class

Implementation

PodDefinition getDefinitionByClass(Class type);