net.sf.cglib
Interface LazyLoader

All Superinterfaces:
Callback

public interface LazyLoader
extends Callback

Lazy-loading Enhancer callback.

See Also:
Callbacks.LAZY_LOAD

Method Summary
 java.lang.Object loadObject()
          Return the object which the original method invocation should be dispatched to now and into the future.
 

Method Detail

loadObject

public java.lang.Object loadObject()
                            throws java.lang.Exception
Return the object which the original method invocation should be dispatched to now and into the future. Called as soon as the first lazily-loaded method in the enhanced instance is invoked.

Returns:
an object that can invoke the method
Throws:
java.lang.ClassCastException - if the object is incompatible with the method being invoked
java.lang.Exception


Copyright © 2002-2003 cglib. All Rights Reserved.