Class ZeroArgumentsConstructorUseCaseInstantiator

    • Constructor Detail

      • ZeroArgumentsConstructorUseCaseInstantiator

        public ZeroArgumentsConstructorUseCaseInstantiator()
    • Method Detail

      • zeroArgumentsConstructorUseCaseInstantiator

        public static ZeroArgumentsConstructorUseCaseInstantiator zeroArgumentsConstructorUseCaseInstantiator()
        Factory method to create a new ZeroArgumentsConstructorUseCaseInstantiator.
        Returns:
        the newly created ZeroArgumentsConstructorUseCaseInstantiator
      • instantiate

        public <T> T instantiate​(Class<T> type)
        Description copied from interface: UseCaseInstantiator
        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.
        Specified by:
        instantiate in interface UseCaseInstantiator
        Type Parameters:
        T - the type of the use case
        Parameters:
        type - the class of the use case
        Returns:
        the instance of the use case