Class ImplementationLazy

java.lang.Object
org.apache.jena.enhanced.Implementation

public class ImplementationLazy extends ImplementationDelegateBase
Implementation that defers creation of a delegate to the first access to its methods. This can greatly increase application startup times when the initialization of the actual implementation performs reflection and byte code fiddling using cglib (weaving).
Author:
raven
  • Field Details

    • ctor

      protected Supplier<org.apache.jena.enhanced.Implementation> ctor
    • targetClass

      protected Class<?> targetClass
  • Constructor Details

    • ImplementationLazy

      public ImplementationLazy(Supplier<org.apache.jena.enhanced.Implementation> ctor, Class<?> targetClass)
      Parameters:
      ctor - The supplier from which the delagate of this class is obtained
      targetClass - The class the implementation is for. Serves informational purpose only.
  • Method Details