Class LazyLoadingInvocationHandler
java.lang.Object
com.e1c.langtool.internal.external.cache.LazyLoadingInvocationHandler
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionLazyLoadingInvocationHandler(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. -
Method Summary
-
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
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-