Class AbstractService.TypeCreator<T>

java.lang.Object
de.iip_ecosphere.platform.services.environment.AbstractService.TypeCreator<T>
Type Parameters:
T - the actual type
Enclosing class:
AbstractService

private static class AbstractService.TypeCreator<T> extends Object
Represents a type creator with actual type being created.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • TypeCreator

      private TypeCreator(Class<T> cls, Supplier<T> creator)
      Creates a type creator instance.
      Parameters:
      cls - the actual type
      creator - function creating an instance
  • Method Details

    • getType

      public Class<?> getType()
      Returns the type being created.
      Returns:
      the type
    • getCreator

      public Supplier<T> getCreator()
      Returns the creator function.
      Returns:
      the creator function