public boolean isHandled(Method m) {
return isLazyAccessor(m);
}
});
proxyClass = proxyFactory.createClass();
proxyMethodHandler = new MethodHandler() {
public Object invoke(Object self, Method m, Method proceed, Object[] args) throws Throwable {
log.debug("lazy loading: " + m.getName());
persistenceFactory.loadLazyPropertyIfNecessary(ClassMetadata.this, self, proceed, m, args);
return proceed.invoke(self, args); // execute the original method.
}