createdBy abstract method

Spec<T> createdBy(
  1. String factoryClass,
  2. String methodName
)

Configures a factory method for creating this pod.

  • factoryClass: Class containing the factory method.
  • methodName: Method name to call for pod creation.

Example

spec.createdBy('ServiceFactory', 'createService');

Implementation

Spec<T> createdBy(String factoryClass, String methodName);