Interface UseCaseInstantiator
-
- All Known Implementing Classes:
ZeroArgumentsConstructorUseCaseInstantiator
public interface UseCaseInstantiatorWhenever a request for a use case is received by aUseCaseAdapter, theUseCaseInstantiatoris askes to provide an instance for the use case.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tinstantiate(Class<T> type)This method is called, whenever a use case is to be invoked.
-
-
-
Method Detail
-
instantiate
<T> T instantiate(Class<T> type)
This method is called, whenever a use case is to be invoked. It takes the use case's class and returns an instance of the use case.- Type Parameters:
T- the type of the use case- Parameters:
type- the class of the use case- Returns:
- the instance of the use case
-
-