Class LazyLoadingInvocationHandler

java.lang.Object
com.e1c.langtool.internal.external.cache.LazyLoadingInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class LazyLoadingInvocationHandler extends Object implements InvocationHandler
This invocation handler provides lazy initialization of objects.

This class can be used for creating proxy objects with lazy initialization. Object's initialization provided by Provider interface. The initialization occurs with the first call of any method of the created object.

See Also:
  • Provider
  • Constructor Details

    • LazyLoadingInvocationHandler

      public LazyLoadingInvocationHandler(com.google.inject.Provider<?> factory)
      Creates a new invocation handler for lazy initialization of object created by the given factory with the first call of any created object's method.
      Parameters:
      factory - the factory to create object
  • Method Details